Skip to content

Commit 80f7c88

Browse files
LucioFrancolelongg
authored andcommitted
chore: Fix unused warnings (tokio-rs#551)
1 parent 211daff commit 80f7c88

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
@@ -412,8 +412,8 @@ fn freeze_after_split_off() {
412412
fn fns_defined_for_bytes_mut() {
413413
let mut bytes = BytesMut::from(&b"hello world"[..]);
414414

415-
bytes.as_ptr();
416-
bytes.as_mut_ptr();
415+
let _ = bytes.as_ptr();
416+
let _ = bytes.as_mut_ptr();
417417

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

0 commit comments

Comments
 (0)