Skip to content

Commit

Permalink
fix(tests): Fix test compile error with nightly feature
Browse files Browse the repository at this point in the history
  • Loading branch information
gretchenfrage authored and seanmonstar committed Oct 29, 2024
1 parent 682d0a6 commit 743d3b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ macro_rules! bench_header {
#[cfg(feature = "nightly")]
mod $mod {
use super::$ty;
use HeaderMapExt;
use crate::HeaderMapExt;

#[bench]
fn bench_decode(b: &mut ::test::Bencher) {
let mut map = ::http::HeaderMap::new();
map.append(
<$ty as ::Header>::name(),
<$ty as crate::Header>::name(),
$value.parse().expect("HeaderValue::from_str($value)"),
);
b.bytes = $value.len() as u64;
Expand All @@ -112,7 +112,7 @@ macro_rules! bench_header {
fn bench_encode(b: &mut ::test::Bencher) {
let mut map = ::http::HeaderMap::new();
map.append(
<$ty as ::Header>::name(),
<$ty as crate::Header>::name(),
$value.parse().expect("HeaderValue::from_str($value)"),
);
let typed = map.typed_get::<$ty>().unwrap();
Expand Down

0 comments on commit 743d3b9

Please sign in to comment.