1
1
error: usage of `contains_key` followed by `insert` on a `HashMap`
2
- --> $DIR/entry.rs:24 :5
2
+ --> $DIR/entry.rs:25 :5
3
3
|
4
4
LL | / if !m.contains_key(&k) {
5
5
LL | | m.insert(k, v);
9
9
= note: `-D clippy::map-entry` implied by `-D warnings`
10
10
11
11
error: usage of `contains_key` followed by `insert` on a `HashMap`
12
- --> $DIR/entry.rs:29 :5
12
+ --> $DIR/entry.rs:30 :5
13
13
|
14
14
LL | / if !m.contains_key(&k) {
15
15
LL | | if true {
@@ -32,7 +32,7 @@ LL + });
32
32
|
33
33
34
34
error: usage of `contains_key` followed by `insert` on a `HashMap`
35
- --> $DIR/entry.rs:38 :5
35
+ --> $DIR/entry.rs:39 :5
36
36
|
37
37
LL | / if !m.contains_key(&k) {
38
38
LL | | if true {
@@ -55,7 +55,7 @@ LL + });
55
55
|
56
56
57
57
error: usage of `contains_key` followed by `insert` on a `HashMap`
58
- --> $DIR/entry.rs:47 :5
58
+ --> $DIR/entry.rs:48 :5
59
59
|
60
60
LL | / if !m.contains_key(&k) {
61
61
LL | | if true {
79
79
|
80
80
81
81
error: usage of `contains_key` followed by `insert` on a `HashMap`
82
- --> $DIR/entry.rs:57 :5
82
+ --> $DIR/entry.rs:58 :5
83
83
|
84
84
LL | / if !m.contains_key(&k) {
85
85
LL | | foo();
@@ -96,7 +96,7 @@ LL + });
96
96
|
97
97
98
98
error: usage of `contains_key` followed by `insert` on a `HashMap`
99
- --> $DIR/entry.rs:63 :5
99
+ --> $DIR/entry.rs:64 :5
100
100
|
101
101
LL | / if !m.contains_key(&k) {
102
102
LL | | match 0 {
@@ -122,7 +122,7 @@ LL + });
122
122
|
123
123
124
124
error: usage of `contains_key` followed by `insert` on a `HashMap`
125
- --> $DIR/entry.rs:75 :5
125
+ --> $DIR/entry.rs:76 :5
126
126
|
127
127
LL | / if !m.contains_key(&k) {
128
128
LL | | match 0 {
@@ -146,7 +146,7 @@ LL + }
146
146
|
147
147
148
148
error: usage of `contains_key` followed by `insert` on a `HashMap`
149
- --> $DIR/entry.rs:85 :5
149
+ --> $DIR/entry.rs:86 :5
150
150
|
151
151
LL | / if !m.contains_key(&k) {
152
152
LL | | foo();
@@ -187,15 +187,15 @@ LL + });
187
187
|
188
188
189
189
error: usage of `contains_key` followed by `insert` on a `HashMap`
190
- --> $DIR/entry.rs:119 :5
190
+ --> $DIR/entry.rs:120 :5
191
191
|
192
192
LL | / if !m.contains_key(&m!(k)) {
193
193
LL | | m.insert(m!(k), m!(v));
194
194
LL | | }
195
195
| |_____^ help: try this: `m.entry(m!(k)).or_insert_with(|| m!(v));`
196
196
197
197
error: usage of `contains_key` followed by `insert` on a `HashMap`
198
- --> $DIR/entry.rs:151 :5
198
+ --> $DIR/entry.rs:152 :5
199
199
|
200
200
LL | / if !m.contains_key(&k) {
201
201
LL | | let x = (String::new(), String::new());
0 commit comments