chore: Fix unused warnings (#551)

This commit is contained in:
Lucio Franco
2022-06-23 09:16:03 -07:00
committed by GitHub
parent 3536017ccf
commit 28a1eab1e0
+2 -2
View File
@@ -411,8 +411,8 @@ fn freeze_after_split_off() {
fn fns_defined_for_bytes_mut() {
let mut bytes = BytesMut::from(&b"hello world"[..]);
bytes.as_ptr();
bytes.as_mut_ptr();
let _ = bytes.as_ptr();
let _ = bytes.as_mut_ptr();
// Iterator
let v: Vec<u8> = bytes.as_ref().iter().cloned().collect();