error: explicit deref method call --> $DIR/dereference.rs:10:19 | LL | let b: &str = a.deref(); | ^^^^^^^^^ help: try this: `&*a` | = note: `-D clippy::explicit-deref-method` implied by `-D warnings` error: explicit deref_mut method call --> $DIR/dereference.rs:12:23 | LL | let b: &mut str = a.deref_mut(); | ^^^^^^^^^^^^^ help: try this: `&mut *a` error: explicit deref method call --> $DIR/dereference.rs:14:21 | LL | let b: String = a.deref().clone(); | ^^^^^^^^^ help: try this: `&*a` error: explicit deref_mut method call --> $DIR/dereference.rs:16:20 | LL | let b: usize = a.deref_mut().len(); | ^^^^^^^^^^^^^ help: try this: `&mut *a` error: explicit deref method call --> $DIR/dereference.rs:18:22 | LL | let b: &usize = &a.deref().len(); | ^^^^^^^^^ help: try this: `&*a` error: explicit deref method call --> $DIR/dereference.rs:21:19 | LL | let b: &str = a.deref().deref(); | ^^^^^^^^^ help: try this: `&*a` error: explicit deref method call --> $DIR/dereference.rs:24:39 | LL | let b: String = format!("{}, {}", a.deref(), a.deref()); | ^^^^^^^^^ help: try this: `&*a` error: explicit deref method call --> $DIR/dereference.rs:24:50 | LL | let b: String = format!("{}, {}", a.deref(), a.deref()); | ^^^^^^^^^ help: try this: `&*a` error: aborting due to 8 previous errors