crypto: Remove some useless mem::replace calls.
parent
41cfbaf520
commit
b602d3007d
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
use std::mem;
|
|
||||||
use std::sync::atomic::{AtomicBool, Ordering};
|
use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
@ -141,12 +140,9 @@ impl Device {
|
||||||
.flatten(),
|
.flatten(),
|
||||||
);
|
);
|
||||||
|
|
||||||
let _ = mem::replace(
|
self.algorithms = Arc::new(device_keys.algorithms.clone());
|
||||||
&mut self.algorithms,
|
self.keys = Arc::new(device_keys.keys.clone());
|
||||||
Arc::new(device_keys.algorithms.clone()),
|
self.display_name = display_name;
|
||||||
);
|
|
||||||
let _ = mem::replace(&mut self.keys, Arc::new(device_keys.keys.clone()));
|
|
||||||
let _ = mem::replace(&mut self.display_name, display_name);
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue