@@ -89,135 +89,103 @@ LL | let _ = some_btreemap.get(&1).unwrap();
89
89
|
90
90
= help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
91
91
92
- error: used `unwrap()` on `an Option` value
93
- --> $DIR/get_unwrap.rs:42:17
94
- |
95
- LL | let _ = false_positive.get(0).unwrap();
96
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
97
- |
98
- = help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
99
-
100
92
error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise
101
- --> $DIR/get_unwrap.rs:44 :21
93
+ --> $DIR/get_unwrap.rs:45 :21
102
94
|
103
95
LL | let _: u8 = *boxed_slice.get(1).unwrap();
104
96
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `boxed_slice[1]`
105
97
106
98
error: used `unwrap()` on `an Option` value
107
- --> $DIR/get_unwrap.rs:44 :22
99
+ --> $DIR/get_unwrap.rs:45 :22
108
100
|
109
101
LL | let _: u8 = *boxed_slice.get(1).unwrap();
110
102
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
111
103
|
112
104
= help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
113
105
114
106
error: called `.get_mut().unwrap()` on a slice. Using `[]` is more clear and more concise
115
- --> $DIR/get_unwrap.rs:49 :9
107
+ --> $DIR/get_unwrap.rs:50 :9
116
108
|
117
109
LL | *boxed_slice.get_mut(0).unwrap() = 1;
118
110
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `boxed_slice[0]`
119
111
120
112
error: used `unwrap()` on `an Option` value
121
- --> $DIR/get_unwrap.rs:49 :10
113
+ --> $DIR/get_unwrap.rs:50 :10
122
114
|
123
115
LL | *boxed_slice.get_mut(0).unwrap() = 1;
124
116
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
125
117
|
126
118
= help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
127
119
128
120
error: called `.get_mut().unwrap()` on a slice. Using `[]` is more clear and more concise
129
- --> $DIR/get_unwrap.rs:50 :9
121
+ --> $DIR/get_unwrap.rs:51 :9
130
122
|
131
123
LL | *some_slice.get_mut(0).unwrap() = 1;
132
124
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_slice[0]`
133
125
134
126
error: used `unwrap()` on `an Option` value
135
- --> $DIR/get_unwrap.rs:50 :10
127
+ --> $DIR/get_unwrap.rs:51 :10
136
128
|
137
129
LL | *some_slice.get_mut(0).unwrap() = 1;
138
130
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
139
131
|
140
132
= help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
141
133
142
134
error: called `.get_mut().unwrap()` on a Vec. Using `[]` is more clear and more concise
143
- --> $DIR/get_unwrap.rs:51 :9
135
+ --> $DIR/get_unwrap.rs:52 :9
144
136
|
145
137
LL | *some_vec.get_mut(0).unwrap() = 1;
146
138
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0]`
147
139
148
140
error: used `unwrap()` on `an Option` value
149
- --> $DIR/get_unwrap.rs:51 :10
141
+ --> $DIR/get_unwrap.rs:52 :10
150
142
|
151
143
LL | *some_vec.get_mut(0).unwrap() = 1;
152
144
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
153
145
|
154
146
= help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
155
147
156
148
error: called `.get_mut().unwrap()` on a VecDeque. Using `[]` is more clear and more concise
157
- --> $DIR/get_unwrap.rs:52 :9
149
+ --> $DIR/get_unwrap.rs:53 :9
158
150
|
159
151
LL | *some_vecdeque.get_mut(0).unwrap() = 1;
160
152
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vecdeque[0]`
161
153
162
154
error: used `unwrap()` on `an Option` value
163
- --> $DIR/get_unwrap.rs:52 :10
155
+ --> $DIR/get_unwrap.rs:53 :10
164
156
|
165
157
LL | *some_vecdeque.get_mut(0).unwrap() = 1;
166
158
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
167
159
|
168
160
= help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
169
161
170
- error: used `unwrap()` on `an Option` value
171
- --> $DIR/get_unwrap.rs:54:10
172
- |
173
- LL | *some_hashmap.get_mut(&1).unwrap() = 'b';
174
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175
- |
176
- = help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
177
-
178
- error: used `unwrap()` on `an Option` value
179
- --> $DIR/get_unwrap.rs:55:10
180
- |
181
- LL | *some_btreemap.get_mut(&1).unwrap() = 'b';
182
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
183
- |
184
- = help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
185
-
186
- error: used `unwrap()` on `an Option` value
187
- --> $DIR/get_unwrap.rs:56:10
188
- |
189
- LL | *false_positive.get_mut(0).unwrap() = 1;
190
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
191
- |
192
- = help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
193
-
194
162
error: called `.get().unwrap()` on a Vec. Using `[]` is more clear and more concise
195
- --> $DIR/get_unwrap.rs:61 :17
163
+ --> $DIR/get_unwrap.rs:65 :17
196
164
|
197
165
LL | let _ = some_vec.get(0..1).unwrap().to_vec();
198
166
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0..1]`
199
167
200
168
error: used `unwrap()` on `an Option` value
201
- --> $DIR/get_unwrap.rs:61 :17
169
+ --> $DIR/get_unwrap.rs:65 :17
202
170
|
203
171
LL | let _ = some_vec.get(0..1).unwrap().to_vec();
204
172
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
205
173
|
206
174
= help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
207
175
208
176
error: called `.get_mut().unwrap()` on a Vec. Using `[]` is more clear and more concise
209
- --> $DIR/get_unwrap.rs:62 :17
177
+ --> $DIR/get_unwrap.rs:66 :17
210
178
|
211
179
LL | let _ = some_vec.get_mut(0..1).unwrap().to_vec();
212
180
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0..1]`
213
181
214
182
error: used `unwrap()` on `an Option` value
215
- --> $DIR/get_unwrap.rs:62 :17
183
+ --> $DIR/get_unwrap.rs:66 :17
216
184
|
217
185
LL | let _ = some_vec.get_mut(0..1).unwrap().to_vec();
218
186
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
219
187
|
220
188
= help: if you don't want to handle the `None` case gracefully, consider using `expect()` to provide a better panic message
221
189
222
- error: aborting due to 30 previous errors
190
+ error: aborting due to 26 previous errors
223
191
0 commit comments