mirror of
https://github.com/chipsenkbeil/distant.git
synced 2024-11-05 12:00:36 +00:00
Fix clippy warning
This commit is contained in:
parent
3d09ced685
commit
bd526c9c82
@ -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(()),
|
||||
|
Loading…
Reference in New Issue
Block a user