Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
chipsenkbeil committed Oct 10, 2021
1 parent 3d09ced commit bd526c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions distant-core/src/net/transport/inmemory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,8 @@ impl AsyncRead for InmemoryStreamReadHalf {
Some(mut x) => {
if x.len() > buf.remaining() {
self.overflow = x.split_off(buf.remaining());
buf.put_slice(&x);
} else {
buf.put_slice(&x);
}
buf.put_slice(&x);
Ok(())
}
None => Ok(()),
Expand Down

0 comments on commit bd526c9

Please sign in to comment.