Fixed nightly clippy warnings (#572)
* Fixed nightly clippy warnings * Using string literal in panic message
This commit is contained in:
committed by
GitHub
parent
dca9c7079c
commit
4e339f1788
@@ -59,7 +59,7 @@ impl MixMetrics {
|
||||
let mut unlocked = self.inner.sent.lock().await;
|
||||
let received = self.inner.received.swap(0, Ordering::SeqCst);
|
||||
|
||||
let sent = std::mem::replace(unlocked.deref_mut(), HashMap::new());
|
||||
let sent = std::mem::take(unlocked.deref_mut());
|
||||
|
||||
(received, sent)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user