1 error: usage of `contains_key` followed by `insert` on a `HashMap`
4 19 | / if !m.contains_key(&k) {
7 | |_____^ help: consider using: `m.entry(k).or_insert(v)`
9 = note: `-D clippy::map-entry` implied by `-D warnings`
11 error: usage of `contains_key` followed by `insert` on a `HashMap`
12 --> $DIR/entry.rs:25:5
14 25 | / if !m.contains_key(&k) {
16 27 | | m.insert(k, v);
18 | |_____^ help: consider using: `m.entry(k)`
20 error: usage of `contains_key` followed by `insert` on a `HashMap`
21 --> $DIR/entry.rs:32:5
23 32 | / if !m.contains_key(&k) {
28 | |_____^ help: consider using: `m.entry(k)`
30 error: usage of `contains_key` followed by `insert` on a `HashMap`
31 --> $DIR/entry.rs:40:5
33 40 | / if m.contains_key(&k) {
38 | |_____^ help: consider using: `m.entry(k)`
40 error: usage of `contains_key` followed by `insert` on a `HashMap`
41 --> $DIR/entry.rs:48:5
43 48 | / if !m.contains_key(&k) {
49 | |_____^ help: consider using: `m.entry(k)`
51 error: usage of `contains_key` followed by `insert` on a `HashMap`
52 --> $DIR/entry.rs:57:5
54 57 | / if m.contains_key(&k) {
60 | |_____^ help: consider using: `m.entry(k)`
62 error: usage of `contains_key` followed by `insert` on a `BTreeMap`
63 --> $DIR/entry.rs:66:5
65 66 | / if !m.contains_key(&k) {
71 | |_____^ help: consider using: `m.entry(k)`
73 error: aborting due to 7 previous errors