File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 1- #![ feature( tool_lints) ]
2-
31#![ warn( clippy:: new_ret_no_self) ]
42#![ allow( dead_code, clippy:: trivially_copy_pass_by_ref) ]
53
Original file line number Diff line number Diff line change 11error: methods called `new` usually return `Self`
2- --> $DIR/new_ret_no_self.rs:51 :5
2+ --> $DIR/new_ret_no_self.rs:49 :5
33 |
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 | | }
77 | |_____^
88 |
99 = note: `-D clippy::new-ret-no-self` implied by `-D warnings`
1010
1111error: methods called `new` usually return `Self`
12- --> $DIR/new_ret_no_self.rs:83 :5
12+ --> $DIR/new_ret_no_self.rs:81 :5
1313 |
14- 83 | / pub fn new() -> u32 {
15- 84 | | unimplemented!();
16- 85 | | }
14+ 81 | / pub fn new() -> u32 {
15+ 82 | | unimplemented!();
16+ 83 | | }
1717 | |_____^
1818
1919error: methods called `new` usually return `Self`
20- --> $DIR/new_ret_no_self.rs:92 :5
20+ --> $DIR/new_ret_no_self.rs:90 :5
2121 |
22- 92 | / pub fn new(_: String) -> u32 {
23- 93 | | unimplemented!();
24- 94 | | }
22+ 90 | / pub fn new(_: String) -> u32 {
23+ 91 | | unimplemented!();
24+ 92 | | }
2525 | |_____^
2626
2727error: aborting due to 3 previous errors
You can’t perform that action at this time.
0 commit comments