@@ -36,41 +36,47 @@ error: called `.get().unwrap()` on a BTreeMap. Using `[]` is more clear and more
3636LL | let _ = some_btreemap.get(&1).unwrap();
3737 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_btreemap[&1]`
3838
39+ error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise
40+ --> $DIR/get_unwrap.rs:50:21
41+ |
42+ LL | let _: u8 = *boxed_slice.get(1).unwrap();
43+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `boxed_slice[1]`
44+
3945error: called `.get_mut().unwrap()` on a slice. Using `[]` is more clear and more concise
40- --> $DIR/get_unwrap.rs:53 :9
46+ --> $DIR/get_unwrap.rs:55 :9
4147 |
4248LL | *boxed_slice.get_mut(0).unwrap() = 1;
4349 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `boxed_slice[0]`
4450
4551error: called `.get_mut().unwrap()` on a slice. Using `[]` is more clear and more concise
46- --> $DIR/get_unwrap.rs:54 :9
52+ --> $DIR/get_unwrap.rs:56 :9
4753 |
4854LL | *some_slice.get_mut(0).unwrap() = 1;
4955 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_slice[0]`
5056
5157error: called `.get_mut().unwrap()` on a Vec. Using `[]` is more clear and more concise
52- --> $DIR/get_unwrap.rs:55 :9
58+ --> $DIR/get_unwrap.rs:57 :9
5359 |
5460LL | *some_vec.get_mut(0).unwrap() = 1;
5561 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0]`
5662
5763error: called `.get_mut().unwrap()` on a VecDeque. Using `[]` is more clear and more concise
58- --> $DIR/get_unwrap.rs:56 :9
64+ --> $DIR/get_unwrap.rs:58 :9
5965 |
6066LL | *some_vecdeque.get_mut(0).unwrap() = 1;
6167 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vecdeque[0]`
6268
6369error: called `.get().unwrap()` on a Vec. Using `[]` is more clear and more concise
64- --> $DIR/get_unwrap.rs:65 :17
70+ --> $DIR/get_unwrap.rs:67 :17
6571 |
6672LL | let _ = some_vec.get(0..1).unwrap().to_vec();
6773 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0..1]`
6874
6975error: called `.get_mut().unwrap()` on a Vec. Using `[]` is more clear and more concise
70- --> $DIR/get_unwrap.rs:66 :17
76+ --> $DIR/get_unwrap.rs:68 :17
7177 |
7278LL | let _ = some_vec.get_mut(0..1).unwrap().to_vec();
7379 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0..1]`
7480
75- error: aborting due to 12 previous errors
81+ error: aborting due to 13 previous errors
7682
0 commit comments