Skip to content

Commit 28a1eab

Browse files
authored
chore: Fix unused warnings (#551)
1 parent 3536017 commit 28a1eab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_bytes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ fn freeze_after_split_off() {
411411
fn fns_defined_for_bytes_mut() {
412412
let mut bytes = BytesMut::from(&b"hello world"[..]);
413413

414-
bytes.as_ptr();
415-
bytes.as_mut_ptr();
414+
let _ = bytes.as_ptr();
415+
let _ = bytes.as_mut_ptr();
416416

417417
// Iterator
418418
let v: Vec<u8> = bytes.as_ref().iter().cloned().collect();

0 commit comments

Comments
 (0)