fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: usage of `contains_key` followed by `insert` on a `BTreeMap` 2 --> $DIR/entry_btree.rs:10:5 3 | 4LL | / if !m.contains_key(&k) { 5LL | | m.insert(k, v); 6LL | | foo(); 7LL | | } 8 | |_____^ 9 | 10 = note: `-D clippy::map-entry` implied by `-D warnings` 11 = help: to override `-D warnings` add `#[allow(clippy::map_entry)]` 12help: try 13 | 14LL ~ if let std::collections::btree_map::Entry::Vacant(e) = m.entry(k) { 15LL + e.insert(v); 16LL + foo(); 17LL + } 18 | 19 20error: aborting due to previous error 21