Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
```
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 <wllenyj@linux.alibaba.com>
  • Loading branch information
wllenyj authored and jiangliu committed Nov 14, 2022
1 parent c1ad4ba commit e0e4da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ impl<S: BitmapSlice> IoBuffers<'_, S> {
if bufs.is_empty() {
Ok(0)
} else {
let bytes_consumed = f(&*bufs)?;
let bytes_consumed = f(&bufs)?;
if mark_dirty {
self.mark_dirty(bytes_consumed);
}
Expand Down

0 comments on commit e0e4da7

Please sign in to comment.