Skip to content

Commit 46c721f

Browse files
jschwesylvestre
authored andcommitted
Update hyperx
MSRV for 1.4 is 1.46 Breaking change in v0.14 to `Header::parse_header`. Since the `HeaderValue` directly implements RawLike trait, we can just use it as is, without converting. Signed-off-by: Jonathan Schwender <[email protected]>
1 parent b80292e commit 46c721f

File tree

3 files changed

+22
-69
lines changed

3 files changed

+22
-69
lines changed

Cargo.lock

Lines changed: 20 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ futures-locks = "0.6"
4343
hmac = { version = "0.10", optional = true }
4444
http = "0.2"
4545
hyper = { version = "0.14", optional = true, features = ["server"] }
46-
hyperx = { version = "0.13", optional = true }
46+
hyperx = { version = "1.0", optional = true }
4747
jobserver = "0.1"
4848
jsonwebtoken = { version = "7", optional = true }
4949
lazy_static = "1.0.0"

src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ mod http_extension {
389389
H: hyperx::header::Header,
390390
{
391391
http::HeaderMap::get(self, H::header_name())
392-
.and_then(|header| H::parse_header(&header.as_bytes().into()).ok())
392+
.and_then(|header| H::parse_header(&header).ok())
393393
}
394394
}
395395

0 commit comments

Comments
 (0)