File tree 2 files changed +12
-14
lines changed
2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 1
- #![ feature( tool_lints) ]
2
-
3
1
#![ warn( clippy:: new_ret_no_self) ]
4
2
#![ allow( dead_code, clippy:: trivially_copy_pass_by_ref) ]
5
3
Original file line number Diff line number Diff line change 1
1
error: methods called `new` usually return `Self`
2
- --> $DIR/new_ret_no_self.rs:51 :5
2
+ --> $DIR/new_ret_no_self.rs:49 :5
3
3
|
4
- 51 | / pub fn new(_: String) -> impl R<Item = u32> {
5
- 52 | | S3
6
- 53 | | }
4
+ 49 | / pub fn new(_: String) -> impl R<Item = u32> {
5
+ 50 | | S3
6
+ 51 | | }
7
7
| |_____^
8
8
|
9
9
= note: `-D clippy::new-ret-no-self` implied by `-D warnings`
10
10
11
11
error: methods called `new` usually return `Self`
12
- --> $DIR/new_ret_no_self.rs:83 :5
12
+ --> $DIR/new_ret_no_self.rs:81 :5
13
13
|
14
- 83 | / pub fn new() -> u32 {
15
- 84 | | unimplemented!();
16
- 85 | | }
14
+ 81 | / pub fn new() -> u32 {
15
+ 82 | | unimplemented!();
16
+ 83 | | }
17
17
| |_____^
18
18
19
19
error: methods called `new` usually return `Self`
20
- --> $DIR/new_ret_no_self.rs:92 :5
20
+ --> $DIR/new_ret_no_self.rs:90 :5
21
21
|
22
- 92 | / pub fn new(_: String) -> u32 {
23
- 93 | | unimplemented!();
24
- 94 | | }
22
+ 90 | / pub fn new(_: String) -> u32 {
23
+ 91 | | unimplemented!();
24
+ 92 | | }
25
25
| |_____^
26
26
27
27
error: aborting due to 3 previous errors
You can’t perform that action at this time.
0 commit comments