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 `&Foo<u32>` which `clone` is being called on is the same as the type returned from `clone`, so the method call does not do anything and can be removed.
8
+
= note: the type `&Foo<u32>` which `clone` is being called on is the same as the type returned from `clone`, so the method call does not do anything and can be removed
9
9
10
10
warning: call to `.deref()` on a reference in this situation does nothing
11
11
--> $DIR/noop-method-call.rs:31:44
12
12
|
13
13
LL | let derefed: &DerefExample<u32> = deref.deref();
14
14
| ^^^^^^^^ unnecessary method call
15
15
|
16
-
= note: the type `&&DerefExample<u32>` which `deref` is being called on is the same as the type returned from `deref`, so the method call does not do anything and can be removed.
16
+
= note: the type `&DerefExample<u32>` which `deref` is being called on is the same as the type returned from `deref`, so the method call does not do anything and can be removed
17
17
18
18
warning: call to `.borrow()` on a reference in this situation does nothing
19
19
--> $DIR/noop-method-call.rs:38:32
20
20
|
21
21
LL | let borrowed: &Foo<u32> = a.borrow();
22
22
| ^^^^^^^^^ unnecessary method call
23
23
|
24
-
= note: the type `&&Foo<u32>` which `borrow` is being called on is the same as the type returned from `borrow`, so the method call does not do anything and can be removed.
24
+
= note: the type `&Foo<u32>` which `borrow` is being called on is the same as the type returned from `borrow`, so the method call does not do anything and can be removed
25
25
26
26
warning: call to `.clone()` on a reference in this situation does nothing
27
-
--> $DIR/noop-method-call.rs:47:8
27
+
--> $DIR/noop-method-call.rs:50:8
28
28
|
29
29
LL | foo.clone();
30
30
| ^^^^^^^^ unnecessary method call
31
31
|
32
-
= note: the type `&Foo<u32>` which `clone` is being called on is the same as the type returned from `clone`, so the method call does not do anything and can be removed.
32
+
= note: the type `&Foo<u32>` which `clone` is being called on is the same as the type returned from `clone`, so the method call does not do anything and can be removed
0 commit comments