resolve all lints, update MSRV
This commit is contained in:
parent
166b59f560
commit
f05a69a9d9
18 changed files with 251 additions and 283 deletions
|
|
@ -67,6 +67,7 @@ impl<T: Clone + Debug> Cached<T> {
|
|||
}
|
||||
|
||||
/// Moves the value from `Self::Used` to `Self::Unused`.
|
||||
#[allow(clippy::missing_panics_doc)]
|
||||
pub fn set_unused(&mut self) {
|
||||
if matches!(*self, Self::Used(_)) {
|
||||
*self = Self::Unused(self.take_used().expect("cached value should be used"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue