1 error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise
2 --> $DIR/get_unwrap.rs:41:17
4 LL | let _ = boxed_slice.get(1).unwrap();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&boxed_slice[1]`
7 = note: `-D clippy::get-unwrap` implied by `-D warnings`
9 error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more concise
10 --> $DIR/get_unwrap.rs:42:17
12 LL | let _ = some_slice.get(0).unwrap();
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_slice[0]`
15 error: called `.get().unwrap()` on a Vec. Using `[]` is more clear and more concise
16 --> $DIR/get_unwrap.rs:43:17
18 LL | let _ = some_vec.get(0).unwrap();
19 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_vec[0]`
21 error: called `.get().unwrap()` on a VecDeque. Using `[]` is more clear and more concise
22 --> $DIR/get_unwrap.rs:44:17
24 LL | let _ = some_vecdeque.get(0).unwrap();
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_vecdeque[0]`
27 error: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise
28 --> $DIR/get_unwrap.rs:45:17
30 LL | let _ = some_hashmap.get(&1).unwrap();
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_hashmap[&1]`
33 error: called `.get().unwrap()` on a BTreeMap. Using `[]` is more clear and more concise
34 --> $DIR/get_unwrap.rs:46:17
36 LL | let _ = some_btreemap.get(&1).unwrap();
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&some_btreemap[&1]`
39 error: called `.get_mut().unwrap()` on a slice. Using `[]` is more clear and more concise
40 --> $DIR/get_unwrap.rs:52:10
42 LL | *boxed_slice.get_mut(0).unwrap() = 1;
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&mut boxed_slice[0]`
45 error: called `.get_mut().unwrap()` on a slice. Using `[]` is more clear and more concise
46 --> $DIR/get_unwrap.rs:53:10
48 LL | *some_slice.get_mut(0).unwrap() = 1;
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&mut some_slice[0]`
51 error: called `.get_mut().unwrap()` on a Vec. Using `[]` is more clear and more concise
52 --> $DIR/get_unwrap.rs:54:10
54 LL | *some_vec.get_mut(0).unwrap() = 1;
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&mut some_vec[0]`
57 error: called `.get_mut().unwrap()` on a VecDeque. Using `[]` is more clear and more concise
58 --> $DIR/get_unwrap.rs:55:10
60 LL | *some_vecdeque.get_mut(0).unwrap() = 1;
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&mut some_vecdeque[0]`
63 error: called `.get().unwrap()` on a Vec. Using `[]` is more clear and more concise
64 --> $DIR/get_unwrap.rs:64:17
66 LL | let _ = some_vec.get(0..1).unwrap().to_vec();
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0..1]`
69 error: called `.get_mut().unwrap()` on a Vec. Using `[]` is more clear and more concise
70 --> $DIR/get_unwrap.rs:65:17
72 LL | let _ = some_vec.get_mut(0..1).unwrap().to_vec();
73 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `some_vec[0..1]`
75 error: aborting due to 12 previous errors