1
1
error: non-canonical implementation of `clone` on a `Copy` type
2
- --> tests/ui/non_canonical_clone_impl.rs:10 :29
2
+ --> tests/ui/non_canonical_clone_impl.rs:11 :29
3
3
|
4
4
LL | fn clone(&self) -> Self {
5
5
| _____________________________^
@@ -11,7 +11,7 @@ LL | | }
11
11
= help: to override `-D warnings` add `#[allow(clippy::non_canonical_clone_impl)]`
12
12
13
13
error: unnecessary implementation of `clone_from` on a `Copy` type
14
- --> tests/ui/non_canonical_clone_impl.rs:14 :5
14
+ --> tests/ui/non_canonical_clone_impl.rs:15 :5
15
15
|
16
16
LL | / fn clone_from(&mut self, source: &Self) {
17
17
LL | | source.clone();
@@ -20,7 +20,7 @@ LL | | }
20
20
| |_____^ help: remove it
21
21
22
22
error: non-canonical implementation of `clone` on a `Copy` type
23
- --> tests/ui/non_canonical_clone_impl.rs:81 :29
23
+ --> tests/ui/non_canonical_clone_impl.rs:82 :29
24
24
|
25
25
LL | fn clone(&self) -> Self {
26
26
| _____________________________^
@@ -29,7 +29,7 @@ LL | | }
29
29
| |_____^ help: change this to: `{ *self }`
30
30
31
31
error: unnecessary implementation of `clone_from` on a `Copy` type
32
- --> tests/ui/non_canonical_clone_impl.rs:85 :5
32
+ --> tests/ui/non_canonical_clone_impl.rs:86 :5
33
33
|
34
34
LL | / fn clone_from(&mut self, source: &Self) {
35
35
LL | | source.clone();
0 commit comments