mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-01 17:14:32 +01:00
Remove unnecessary call to HashMap::clear
This commit is contained in:
@@ -350,8 +350,7 @@ impl<Reply> RpcFutures<Reply> {
|
||||
}
|
||||
|
||||
fn set_error(&mut self, err: bincode::serde::DeserializeError) {
|
||||
let map = mem::replace(&mut self.0, Err(err.into()));
|
||||
map.unwrap().clear();
|
||||
let _ = mem::replace(&mut self.0, Err(err.into()));
|
||||
}
|
||||
|
||||
fn get_error(&self) -> Error {
|
||||
|
||||
Reference in New Issue
Block a user