You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= note: the type `PlainType<u32>` does not implement `Clone`, so calling `clone` on `&PlainType<u32>` copies the reference, which does not do anything and can be removed
25
25
26
26
warning: call to `.deref()` on a reference in this situation does nothing
27
-
--> $DIR/noop-method-call.rs:31:63
27
+
--> $DIR/noop-method-call.rs:30:63
28
28
|
29
29
LL | let non_deref_type_deref: &PlainType<u32> = non_deref_type.deref();
30
30
| ^^^^^^^^ help: remove this redundant call
31
31
|
32
32
= note: the type `PlainType<u32>` does not implement `Deref`, so calling `deref` on `&PlainType<u32>` copies the reference, which does not do anything and can be removed
33
33
34
34
warning: call to `.borrow()` on a reference in this situation does nothing
35
-
--> $DIR/noop-method-call.rs:35:66
35
+
--> $DIR/noop-method-call.rs:34:66
36
36
|
37
37
LL | let non_borrow_type_borrow: &PlainType<u32> = non_borrow_type.borrow();
38
38
| ^^^^^^^^^ help: remove this redundant call
39
39
|
40
40
= note: the type `PlainType<u32>` does not implement `Borrow`, so calling `borrow` on `&PlainType<u32>` copies the reference, which does not do anything and can be removed
41
41
42
42
warning: call to `.clone()` on a reference in this situation does nothing
43
-
--> $DIR/noop-method-call.rs:44:19
43
+
--> $DIR/noop-method-call.rs:43:19
44
44
|
45
45
LL | non_clone_type.clone();
46
46
| ^^^^^^^^ help: remove this redundant call
47
47
|
48
48
= note: the type `PlainType<T>` does not implement `Clone`, so calling `clone` on `&PlainType<T>` copies the reference, which does not do anything and can be removed
49
49
50
50
warning: call to `.clone()` on a reference in this situation does nothing
0 commit comments