fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: explicit `deref` method call 2 --> $DIR/explicit_deref_methods.rs:54:19 3 | 4LL | let b: &str = a.deref(); 5 | ^^^^^^^^^ help: try: `&*a` 6 | 7 = note: `-D clippy::explicit-deref-methods` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::explicit_deref_methods)]` 9 10error: explicit `deref_mut` method call 11 --> $DIR/explicit_deref_methods.rs:56:23 12 | 13LL | let b: &mut str = a.deref_mut(); 14 | ^^^^^^^^^^^^^ help: try: `&mut **a` 15 16error: explicit `deref` method call 17 --> $DIR/explicit_deref_methods.rs:59:39 18 | 19LL | let b: String = format!("{}, {}", a.deref(), a.deref()); 20 | ^^^^^^^^^ help: try: `&*a` 21 22error: explicit `deref` method call 23 --> $DIR/explicit_deref_methods.rs:59:50 24 | 25LL | let b: String = format!("{}, {}", a.deref(), a.deref()); 26 | ^^^^^^^^^ help: try: `&*a` 27 28error: explicit `deref` method call 29 --> $DIR/explicit_deref_methods.rs:61:20 30 | 31LL | println!("{}", a.deref()); 32 | ^^^^^^^^^ help: try: `&*a` 33 34error: explicit `deref` method call 35 --> $DIR/explicit_deref_methods.rs:64:11 36 | 37LL | match a.deref() { 38 | ^^^^^^^^^ help: try: `&*a` 39 40error: explicit `deref` method call 41 --> $DIR/explicit_deref_methods.rs:68:28 42 | 43LL | let b: String = concat(a.deref()); 44 | ^^^^^^^^^ help: try: `&*a` 45 46error: explicit `deref` method call 47 --> $DIR/explicit_deref_methods.rs:70:13 48 | 49LL | let b = just_return(a).deref(); 50 | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `just_return(a)` 51 52error: explicit `deref` method call 53 --> $DIR/explicit_deref_methods.rs:72:28 54 | 55LL | let b: String = concat(just_return(a).deref()); 56 | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `just_return(a)` 57 58error: explicit `deref` method call 59 --> $DIR/explicit_deref_methods.rs:74:19 60 | 61LL | let b: &str = a.deref().deref(); 62 | ^^^^^^^^^^^^^^^^^ help: try: `&**a` 63 64error: explicit `deref` method call 65 --> $DIR/explicit_deref_methods.rs:77:13 66 | 67LL | let b = opt_a.unwrap().deref(); 68 | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*opt_a.unwrap()` 69 70error: explicit `deref` method call 71 --> $DIR/explicit_deref_methods.rs:114:31 72 | 73LL | let b: &str = expr_deref!(a.deref()); 74 | ^^^^^^^^^ help: try: `&*a` 75 76error: aborting due to 12 previous errors 77