11error: usage of `contains_key` followed by `insert` on a `HashMap`
2- --> $DIR/entry.rs:24 :5
2+ --> $DIR/entry.rs:25 :5
33 |
44LL | / if !m.contains_key(&k) {
55LL | | m.insert(k, v);
99 = note: `-D clippy::map-entry` implied by `-D warnings`
1010
1111error: usage of `contains_key` followed by `insert` on a `HashMap`
12- --> $DIR/entry.rs:29 :5
12+ --> $DIR/entry.rs:30 :5
1313 |
1414LL | / if !m.contains_key(&k) {
1515LL | | if true {
@@ -32,7 +32,7 @@ LL + });
3232 |
3333
3434error: usage of `contains_key` followed by `insert` on a `HashMap`
35- --> $DIR/entry.rs:38 :5
35+ --> $DIR/entry.rs:39 :5
3636 |
3737LL | / if !m.contains_key(&k) {
3838LL | | if true {
@@ -55,7 +55,7 @@ LL + });
5555 |
5656
5757error: usage of `contains_key` followed by `insert` on a `HashMap`
58- --> $DIR/entry.rs:47 :5
58+ --> $DIR/entry.rs:48 :5
5959 |
6060LL | / if !m.contains_key(&k) {
6161LL | | if true {
7979 |
8080
8181error: usage of `contains_key` followed by `insert` on a `HashMap`
82- --> $DIR/entry.rs:57 :5
82+ --> $DIR/entry.rs:58 :5
8383 |
8484LL | / if !m.contains_key(&k) {
8585LL | | foo();
@@ -96,7 +96,7 @@ LL + });
9696 |
9797
9898error: usage of `contains_key` followed by `insert` on a `HashMap`
99- --> $DIR/entry.rs:63 :5
99+ --> $DIR/entry.rs:64 :5
100100 |
101101LL | / if !m.contains_key(&k) {
102102LL | | match 0 {
@@ -122,7 +122,7 @@ LL + });
122122 |
123123
124124error: usage of `contains_key` followed by `insert` on a `HashMap`
125- --> $DIR/entry.rs:75 :5
125+ --> $DIR/entry.rs:76 :5
126126 |
127127LL | / if !m.contains_key(&k) {
128128LL | | match 0 {
@@ -146,7 +146,7 @@ LL + }
146146 |
147147
148148error: usage of `contains_key` followed by `insert` on a `HashMap`
149- --> $DIR/entry.rs:85 :5
149+ --> $DIR/entry.rs:86 :5
150150 |
151151LL | / if !m.contains_key(&k) {
152152LL | | foo();
@@ -187,15 +187,15 @@ LL + });
187187 |
188188
189189error: usage of `contains_key` followed by `insert` on a `HashMap`
190- --> $DIR/entry.rs:119 :5
190+ --> $DIR/entry.rs:120 :5
191191 |
192192LL | / if !m.contains_key(&m!(k)) {
193193LL | | m.insert(m!(k), m!(v));
194194LL | | }
195195 | |_____^ help: try this: `m.entry(m!(k)).or_insert_with(|| m!(v));`
196196
197197error: usage of `contains_key` followed by `insert` on a `HashMap`
198- --> $DIR/entry.rs:151 :5
198+ --> $DIR/entry.rs:152 :5
199199 |
200200LL | / if !m.contains_key(&k) {
201201LL | | let x = (String::new(), String::new());
0 commit comments