Skip to content

Commit e0e4da7

Browse files
wllenyjjiangliu
authored andcommitted
fix clippy warning
``` error: deref which would be done by auto-deref --> src/transport/mod.rs:295:36 | 295 | let bytes_consumed = f(&*bufs)?; | ^^^^^^ help: try this: `&bufs` | = note: `-D clippy::explicit-auto-deref` implied by `-D warnings` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref ``` Signed-off-by: wanglei01 <[email protected]>
1 parent c1ad4ba commit e0e4da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transport/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl<S: BitmapSlice> IoBuffers<'_, S> {
292292
if bufs.is_empty() {
293293
Ok(0)
294294
} else {
295-
let bytes_consumed = f(&*bufs)?;
295+
let bytes_consumed = f(&bufs)?;
296296
if mark_dirty {
297297
self.mark_dirty(bytes_consumed);
298298
}

0 commit comments

Comments
 (0)