Skip to content

Commit 07da81c

Browse files
committed
refactor(tests): replace deprecated numeric api with primitive one
1 parent f53cb5e commit 07da81c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/header/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ macro_rules! from_integers {
411411
let val = HeaderValue::from(n);
412412
assert_eq!(val, &n.to_string());
413413

414-
let n = ::std::$t::MAX;
414+
let n = $t::MAX;
415415
let val = HeaderValue::from(n);
416416
assert_eq!(val, &n.to_string());
417417
}

tests/header_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fn with_capacity_overflow() {
6060
fn reserve_overflow() {
6161
// See https://github.com/hyperium/http/issues/352
6262
let mut headers = HeaderMap::<u32>::with_capacity(0);
63-
headers.reserve(std::usize::MAX); // next_power_of_two overflows
63+
headers.reserve(usize::MAX); // next_power_of_two overflows
6464
}
6565

6666
#[test]

0 commit comments

Comments
 (0)