Skip to content

Commit b56c26c

Browse files
committed
tests: fix formatting
1 parent df87dce commit b56c26c

7 files changed

+18
-14
lines changed

tests/ui/cast_alignment.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
//! Test casts for alignment issues
1111
12-
1312
#![feature(rustc_private)]
1413
extern crate libc;
1514

tests/ui/implicit_return.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ fn test_loop_with_nests() -> bool {
5656
loop {
5757
if true {
5858
break true;
59-
}
60-
else {
59+
} else {
6160
let _ = true;
6261
}
6362
}

tests/ui/new_without_default.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,18 @@ pub struct Allow(Foo);
143143

144144
impl Allow {
145145
#[allow(clippy::new_without_default)]
146-
pub fn new() -> Self { unimplemented!() }
146+
pub fn new() -> Self {
147+
unimplemented!()
148+
}
147149
}
148150

149151
pub struct AllowDerive;
150152

151153
impl AllowDerive {
152154
#[allow(clippy::new_without_default_derive)]
153-
pub fn new() -> Self { unimplemented!() }
155+
pub fn new() -> Self {
156+
unimplemented!()
157+
}
154158
}
155159

156160
fn main() {}

tests/ui/partialeq_ne_impl.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ impl PartialEq for Foo {
2323
struct Bar;
2424

2525
impl PartialEq for Bar {
26-
fn eq(&self, _: &Bar) -> bool { true }
26+
fn eq(&self, _: &Bar) -> bool {
27+
true
28+
}
2729
#[allow(clippy::partialeq_ne_impl)]
28-
fn ne(&self, _: &Bar) -> bool { false }
30+
fn ne(&self, _: &Bar) -> bool {
31+
false
32+
}
2933
}
3034

3135
fn main() {}

tests/ui/redundant_field_names.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ fn main() {
7070
}
7171

7272
fn issue_3476() {
73-
fn foo<T>() {
74-
}
73+
fn foo<T>() {}
7574

7675
struct S {
7776
foo: fn(),

tests/ui/unused_io_amount.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
use std::io;
1414

15-
1615
fn try_macro<T: io::Read + io::Write>(s: &mut T) -> io::Result<()> {
1716
try!(s.write(b"test"));
1817
let mut buf = [0u8; 4];

tests/ui/vec_box_sized.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
struct SizedStruct {
2-
_a: i32,
2+
_a: i32,
33
}
44

55
struct UnsizedStruct {
6-
_a: [i32],
6+
_a: [i32],
77
}
88

99
struct StructWithVecBox {
10-
sized_type: Vec<Box<SizedStruct>>,
10+
sized_type: Vec<Box<SizedStruct>>,
1111
}
1212

1313
struct StructWithVecBoxButItsUnsized {
14-
unsized_type: Vec<Box<UnsizedStruct>>,
14+
unsized_type: Vec<Box<UnsizedStruct>>,
1515
}
1616

1717
fn main() {}

0 commit comments

Comments
 (0)