1 error: derefed type is same as origin
2 --> $DIR/needless_option_as_deref.rs:7:29
4 LL | let _: Option<&usize> = Some(&1).as_deref();
5 | ^^^^^^^^^^^^^^^^^^^ help: try this: `Some(&1)`
7 = note: `-D clippy::needless-option-as-deref` implied by `-D warnings`
9 error: derefed type is same as origin
10 --> $DIR/needless_option_as_deref.rs:8:33
12 LL | let _: Option<&mut usize> = Some(&mut 1).as_deref_mut();
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `Some(&mut 1)`
15 error: aborting due to 2 previous errors