Skip to content

Commit 3e3d3c0

Browse files
committed
Update tests
1 parent 1e00a28 commit 3e3d3c0

8 files changed

+41
-2
lines changed

tests/source/configs-item_brace_style-always_next_line.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ struct Lorem {
88
struct Dolor<T> where T: Eq {
99
sit: T,
1010
}
11+
12+
#[cfg(test)]
13+
mod tests {
14+
#[test]
15+
fn it_works() {}
16+
}

tests/source/configs-item_brace_style-prefer_same_line.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ struct Lorem {
88
struct Dolor<T> where T: Eq {
99
sit: T,
1010
}
11+
12+
#[cfg(test)]
13+
mod tests {
14+
#[test]
15+
fn it_works() {}
16+
}

tests/source/configs-item_brace_style-same_line_where.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ struct Lorem {
88
struct Dolor<T> where T: Eq {
99
sit: T,
1010
}
11+
12+
#[cfg(test)]
13+
mod tests {
14+
#[test]
15+
fn it_works() {}
16+
}

tests/target/configs-item_brace_style-always_next_line.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@ where
1212
{
1313
sit: T,
1414
}
15+
16+
#[cfg(test)]
17+
mod tests
18+
{
19+
#[test]
20+
fn it_works() {}
21+
}

tests/target/configs-item_brace_style-prefer_same_line.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ where
1010
T: Eq, {
1111
sit: T,
1212
}
13+
14+
#[cfg(test)]
15+
mod tests {
16+
#[test]
17+
fn it_works() {}
18+
}

tests/target/configs-item_brace_style-same_line_where.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ where
1111
{
1212
sit: T,
1313
}
14+
15+
#[cfg(test)]
16+
mod tests {
17+
#[test]
18+
fn it_works() {}
19+
}

tests/target/indented-impl.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// rustfmt-item_brace_style: AlwaysNextLine
2-
mod x {
2+
mod x
3+
{
34
struct X(i8);
45

56
impl Y for X

tests/target/item-brace-style-always-next-line.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// rustfmt-item_brace_style: AlwaysNextLine
22

3-
mod M {
3+
mod M
4+
{
45
enum A
56
{
67
A,

0 commit comments

Comments
 (0)