clippy
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
jake 2022-07-30 20:16:07 -06:00
parent 16a4653360
commit e5ff75e367

View File

@ -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(())