Skip to content

Commit

Permalink
Run rustfmt on the ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed Dec 28, 2018
1 parent 0a42dcb commit 0afd9ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/ui/new_without_default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ pub struct AllowDerive;

impl AllowDerive {
#[allow(clippy::new_without_default)]
pub fn new() -> Self { unimplemented!() }
pub fn new() -> Self {
unimplemented!()
}
}

fn main() {}
4 changes: 3 additions & 1 deletion tests/ui/rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ fn main() {}
struct Foo;

impl Foo {
fn new() -> Self { Foo }
fn new() -> Self {
Foo
}
}

0 comments on commit 0afd9ef

Please sign in to comment.