diff options
author | 2022-01-24 08:58:05 +0000 | |
---|---|---|
committer | 2022-01-24 09:58:05 +0100 | |
commit | 0e3b2466f199375031006857164fbf70e3ea479f (patch) | |
tree | db22384c238a578fde1c7f4572338fa7744b6876 /benches/bytes.rs | |
parent | 68afb40df9ea2e61a93d0e26f6f8a9f231979452 (diff) | |
download | bytes-0e3b2466f199375031006857164fbf70e3ea479f.tar.gz bytes-0e3b2466f199375031006857164fbf70e3ea479f.tar.zst bytes-0e3b2466f199375031006857164fbf70e3ea479f.zip |
Address various clippy warnings (#528)
Diffstat (limited to 'benches/bytes.rs')
-rw-r--r-- | benches/bytes.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/benches/bytes.rs b/benches/bytes.rs index c5b8412..61d1e83 100644 --- a/benches/bytes.rs +++ b/benches/bytes.rs @@ -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)); |