1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 16:17:43 +02:00

remove unused type parameter from Framed::replace_codec (#183)

This commit is contained in:
Rob Ede
2020-08-20 00:30:26 +01:00
committed by GitHub
parent 119dc39f5b
commit 27c6be9881
7 changed files with 9 additions and 6 deletions

View File

@ -2,6 +2,9 @@
## Unreleased - 2020-xx-xx
## 0.3.0-beta.2 - 2020-08-19
* Remove unused type parameter from `Framed::replace_codec`.
## 0.3.0-beta.1 - 2020-08-19
* Use `.advance()` instead of `.split_to()`.
* Upgrade `tokio-util` to `0.3`.

View File

@ -1,6 +1,6 @@
[package]
name = "actix-codec"
version = "0.3.0-beta.1"
version = "0.3.0-beta.2"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
description = "Utilities for encoding and decoding frames"
keywords = ["network", "framework", "async", "futures"]

View File

@ -117,7 +117,7 @@ impl<T, U> Framed<T, U> {
}
/// Consume the `Frame`, returning `Frame` with different codec.
pub fn replace_codec<U2, I2>(self, codec: U2) -> Framed<T, U2> {
pub fn replace_codec<U2>(self, codec: U2) -> Framed<T, U2> {
Framed {
codec,
io: self.io,