Browse Source

clippy

pull/117/head
jake 2 years ago
parent
commit
e5ff75e367
  1. 4
      src/entity/gateway/inmemory.rs

4
src/entity/gateway/inmemory.rs

@ -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…
Cancel
Save