mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-31 11:02:08 +01:00
address lints
This commit is contained in:
parent
58c19b817f
commit
1072d0dacf
@ -555,6 +555,7 @@ mod tests {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused_allocation)] // triggered by `Box::new(()).size()`
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
async fn boxing_equivalence() {
|
async fn boxing_equivalence() {
|
||||||
assert_eq!(().size(), BodySize::Sized(0));
|
assert_eq!(().size(), BodySize::Sized(0));
|
||||||
|
@ -87,7 +87,7 @@ fn future_responder(c: &mut Criterion) {
|
|||||||
|
|
||||||
let start = Instant::now();
|
let start = Instant::now();
|
||||||
|
|
||||||
let _res = rt.block_on(async { futs.await });
|
let _res = rt.block_on(futs);
|
||||||
|
|
||||||
start.elapsed()
|
start.elapsed()
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user