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