1 error: usage of `contains_key` followed by `insert` on a `HashMap`
4 LL | / 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:16:5
14 LL | / if !m.contains_key(&k) {
16 LL | | m.insert(k, v);
20 help: consider using `m.entry(k)`
21 --> $DIR/entry.rs:16:5
23 LL | / if !m.contains_key(&k) {
25 LL | | m.insert(k, v);
29 error: usage of `contains_key` followed by `insert` on a `HashMap`
30 --> $DIR/entry.rs:23:5
32 LL | / if !m.contains_key(&k) {
39 help: consider using `m.entry(k)`
40 --> $DIR/entry.rs:23:5
42 LL | / if !m.contains_key(&k) {
49 error: usage of `contains_key` followed by `insert` on a `HashMap`
50 --> $DIR/entry.rs:31:5
52 LL | / if m.contains_key(&k) {
59 help: consider using `m.entry(k)`
60 --> $DIR/entry.rs:31:5
62 LL | / if m.contains_key(&k) {
69 error: usage of `contains_key` followed by `insert` on a `HashMap`
70 --> $DIR/entry.rs:39:5
72 LL | / if !m.contains_key(&k) {
80 help: consider using `m.entry(k)`
81 --> $DIR/entry.rs:39:5
83 LL | / if !m.contains_key(&k) {
91 error: usage of `contains_key` followed by `insert` on a `HashMap`
92 --> $DIR/entry.rs:48:5
94 LL | / if m.contains_key(&k) {
102 help: consider using `m.entry(k)`
103 --> $DIR/entry.rs:48:5
105 LL | / if m.contains_key(&k) {
109 LL | | m.insert(k, v)
113 error: usage of `contains_key` followed by `insert` on a `BTreeMap`
114 --> $DIR/entry.rs:57:5
116 LL | / if !m.contains_key(&k) {
118 LL | | m.insert(k, v)
124 help: consider using `m.entry(k)`
125 --> $DIR/entry.rs:57:5
127 LL | / if !m.contains_key(&k) {
129 LL | | m.insert(k, v)
135 error: aborting due to 7 previous errors