Skip to content

Commit aa1c9a5

Browse files
committedMar 1, 2024
If suggestion would leave an empty line, delete it
1 parent fb18033 commit aa1c9a5

4 files changed

+0
-14
lines changed
 

‎tests/ui/derivable_impls.fixed

-8
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ struct FooDefault<'a> {
1919
}
2020

2121

22-
2322
#[derive(Default)]
2423
struct TupleDefault(bool, i32, u64);
2524

2625

27-
2826
struct FooND1 {
2927
a: bool,
3028
}
@@ -73,7 +71,6 @@ impl Default for FooNDVec {
7371
struct StrDefault<'a>(&'a str);
7472

7573

76-
7774
#[derive(Default)]
7875
struct AlreadyDerived(i32, bool);
7976

@@ -96,7 +93,6 @@ mac!(0);
9693
#[derive(Default)]
9794
struct Y(u32);
9895

99-
10096
struct RustIssue26925<T> {
10197
a: Option<T>,
10298
}
@@ -132,12 +128,10 @@ struct WithoutSelfCurly {
132128
}
133129

134130

135-
136131
#[derive(Default)]
137132
struct WithoutSelfParan(bool);
138133

139134

140-
141135
// https://github.com/rust-lang/rust-clippy/issues/7655
142136

143137
pub struct SpecializedImpl2<T> {
@@ -184,7 +178,6 @@ pub struct RepeatDefault1 {
184178
}
185179

186180

187-
188181
pub struct RepeatDefault2 {
189182
a: [i8; 33],
190183
}
@@ -216,7 +209,6 @@ pub enum SimpleEnum {
216209
}
217210

218211

219-
220212
pub enum NonExhaustiveEnum {
221213
Foo,
222214
#[non_exhaustive]

‎tests/ui/empty_drop.fixed

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
struct Foo;
66

77

8-
98
// shouldn't cause an error
109
struct Bar;
1110

@@ -19,5 +18,4 @@ impl Drop for Bar {
1918
struct Baz;
2019

2120

22-
2321
fn main() {}

‎tests/ui/must_use_unit.fixed

-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@
66
extern crate proc_macros;
77
use proc_macros::external;
88

9-
109
pub fn must_use_default() {}
1110

12-
1311
pub fn must_use_unit() -> () {}
1412

15-
1613
pub fn must_use_with_note() {}
1714

1815
fn main() {

‎tests/ui/single_component_path_imports.fixed

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use core;
55

66

7-
87
use serde as edres;
98

109
pub use serde;

0 commit comments

Comments
 (0)
Please sign in to comment.