If suggestion would leave an empty line, delete it

This commit is contained in:
clubby789 2024-01-26 15:32:59 +00:00
parent fb18033b83
commit aa1c9a5993
4 changed files with 0 additions and 14 deletions

View File

@ -19,12 +19,10 @@ struct FooDefault<'a> {
} }
#[derive(Default)] #[derive(Default)]
struct TupleDefault(bool, i32, u64); struct TupleDefault(bool, i32, u64);
struct FooND1 { struct FooND1 {
a: bool, a: bool,
} }
@ -73,7 +71,6 @@ impl Default for FooNDVec {
struct StrDefault<'a>(&'a str); struct StrDefault<'a>(&'a str);
#[derive(Default)] #[derive(Default)]
struct AlreadyDerived(i32, bool); struct AlreadyDerived(i32, bool);
@ -96,7 +93,6 @@ mac!(0);
#[derive(Default)] #[derive(Default)]
struct Y(u32); struct Y(u32);
struct RustIssue26925<T> { struct RustIssue26925<T> {
a: Option<T>, a: Option<T>,
} }
@ -132,12 +128,10 @@ struct WithoutSelfCurly {
} }
#[derive(Default)] #[derive(Default)]
struct WithoutSelfParan(bool); struct WithoutSelfParan(bool);
// https://github.com/rust-lang/rust-clippy/issues/7655 // https://github.com/rust-lang/rust-clippy/issues/7655
pub struct SpecializedImpl2<T> { pub struct SpecializedImpl2<T> {
@ -184,7 +178,6 @@ pub struct RepeatDefault1 {
} }
pub struct RepeatDefault2 { pub struct RepeatDefault2 {
a: [i8; 33], a: [i8; 33],
} }
@ -216,7 +209,6 @@ pub enum SimpleEnum {
} }
pub enum NonExhaustiveEnum { pub enum NonExhaustiveEnum {
Foo, Foo,
#[non_exhaustive] #[non_exhaustive]

View File

@ -5,7 +5,6 @@
struct Foo; struct Foo;
// shouldn't cause an error // shouldn't cause an error
struct Bar; struct Bar;
@ -19,5 +18,4 @@ impl Drop for Bar {
struct Baz; struct Baz;
fn main() {} fn main() {}

View File

@ -6,13 +6,10 @@
extern crate proc_macros; extern crate proc_macros;
use proc_macros::external; use proc_macros::external;
pub fn must_use_default() {} pub fn must_use_default() {}
pub fn must_use_unit() -> () {} pub fn must_use_unit() -> () {}
pub fn must_use_with_note() {} pub fn must_use_with_note() {}
fn main() { fn main() {

View File

@ -4,7 +4,6 @@
use core; use core;
use serde as edres; use serde as edres;
pub use serde; pub use serde;