We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f53cb5e commit 07da81cCopy full SHA for 07da81c
src/header/value.rs
@@ -411,7 +411,7 @@ macro_rules! from_integers {
411
let val = HeaderValue::from(n);
412
assert_eq!(val, &n.to_string());
413
414
- let n = ::std::$t::MAX;
+ let n = $t::MAX;
415
416
417
}
tests/header_map.rs
@@ -60,7 +60,7 @@ fn with_capacity_overflow() {
60
fn reserve_overflow() {
61
// See https://github.com/hyperium/http/issues/352
62
let mut headers = HeaderMap::<u32>::with_capacity(0);
63
- headers.reserve(std::usize::MAX); // next_power_of_two overflows
+ headers.reserve(usize::MAX); // next_power_of_two overflows
64
65
66
#[test]
0 commit comments