mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-11-16 15:58:14 +00:00
use drop()
This commit is contained in:
parent
7edfce961c
commit
d4b2a6adef
1 changed files with 4 additions and 2 deletions
|
@ -112,8 +112,10 @@ impl<C: LevinCommand + Debug> Decoder for LevinBucketCodec<C> {
|
|||
}
|
||||
}
|
||||
|
||||
let _unused =
|
||||
std::mem::replace(&mut self.state, LevinBucketState::WaitingForBody(head));
|
||||
drop(std::mem::replace(
|
||||
&mut self.state,
|
||||
LevinBucketState::WaitingForBody(head),
|
||||
));
|
||||
}
|
||||
LevinBucketState::WaitingForBody(head) => {
|
||||
let body_len = u64_to_usize(head.size);
|
||||
|
|
Loading…
Reference in a new issue