Address various clippy warnings (#528)

This commit is contained in:
Rob Ede
2022-01-24 09:58:05 +01:00
committed by GitHub
parent 68afb40df9
commit 0e3b2466f1
8 changed files with 27 additions and 26 deletions
+1
View File
@@ -88,6 +88,7 @@ fn from_long_slice(b: &mut Bencher) {
#[bench]
fn slice_empty(b: &mut Bencher) {
b.iter(|| {
// `clone` is to convert to ARC
let b = Bytes::from(vec![17; 1024]).clone();
for i in 0..1000 {
test::black_box(b.slice(i % 100..i % 100));