You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: unused return value of `std::mem::replace` that must be used
--> src/stores.rs:630:9
|
630 | std::mem::replace(self, HashMap::new());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_must_use)]` on by default
= note: if you don't need the old value, you can just assign the new value directly
warning: 1 warning emitted
Is there a reason for using std::mem::replace instead of just *self = HashMap::new();?
For convenience, incoming PR
The text was updated successfully, but these errors were encountered:
My compiler keeps complaining about:
cached/src/stores.rs
Line 630 in 21bd5c6
Is there a reason for using
std::mem::replace
instead of just*self = HashMap::new();
?For convenience, incoming PR
The text was updated successfully, but these errors were encountered: