Skip to content

Commit

Permalink
If suggestion would leave an empty line, delete it
Browse files Browse the repository at this point in the history
  • Loading branch information
clubby789 committed Mar 1, 2024
1 parent fb18033 commit aa1c9a5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions tests/ui/derivable_impls.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ struct FooDefault<'a> {
}



#[derive(Default)]
struct TupleDefault(bool, i32, u64);



struct FooND1 {
a: bool,
}
Expand Down Expand Up @@ -73,7 +71,6 @@ impl Default for FooNDVec {
struct StrDefault<'a>(&'a str);



#[derive(Default)]
struct AlreadyDerived(i32, bool);

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


struct RustIssue26925<T> {
a: Option<T>,
}
Expand Down Expand Up @@ -132,12 +128,10 @@ struct WithoutSelfCurly {
}



#[derive(Default)]
struct WithoutSelfParan(bool);



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

pub struct SpecializedImpl2<T> {
Expand Down Expand Up @@ -184,7 +178,6 @@ pub struct RepeatDefault1 {
}



pub struct RepeatDefault2 {
a: [i8; 33],
}
Expand Down Expand Up @@ -216,7 +209,6 @@ pub enum SimpleEnum {
}



pub enum NonExhaustiveEnum {
Foo,
#[non_exhaustive]
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/empty_drop.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
struct Foo;



// shouldn't cause an error
struct Bar;

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



fn main() {}
3 changes: 0 additions & 3 deletions tests/ui/must_use_unit.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@
extern crate proc_macros;
use proc_macros::external;


pub fn must_use_default() {}


pub fn must_use_unit() -> () {}


pub fn must_use_with_note() {}

fn main() {
Expand Down
1 change: 0 additions & 1 deletion tests/ui/single_component_path_imports.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
use core;



use serde as edres;

pub use serde;
Expand Down

0 comments on commit aa1c9a5

Please sign in to comment.