clippy
This commit is contained in:
parent
16a4653360
commit
e5ff75e367
@ -21,8 +21,8 @@ where
|
||||
K: Ord + Copy,
|
||||
V: Clone,
|
||||
{
|
||||
if !working_table.contains_key(&key) {
|
||||
working_table.insert(key, original_table.get(&key)?.clone());
|
||||
if let std::collections::btree_map::Entry::Vacant(e) = working_table.entry(key) {
|
||||
e.insert(original_table.get(&key)?.clone());
|
||||
}
|
||||
|
||||
Some(())
|
||||
|
Loading…
x
Reference in New Issue
Block a user