Skip to content

Commit 8f4417f

Browse files
committed
Fix rustfmt
1 parent 43e6c65 commit 8f4417f

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

tests/ui/panic_in_result_fn_debug_assertions.rs

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,34 @@
66
struct A;
77

88
impl A {
9-
fn result_with_debug_assert_with_message(x: i32) -> Result<bool, String>
10-
{
9+
fn result_with_debug_assert_with_message(x: i32) -> Result<bool, String> {
1110
debug_assert!(x == 5, "wrong argument");
1211
Ok(true)
1312
}
1413

15-
fn result_with_debug_assert_eq(x: i32) -> Result<bool, String>
16-
{
14+
fn result_with_debug_assert_eq(x: i32) -> Result<bool, String> {
1715
debug_assert_eq!(x, 5);
1816
Ok(true)
1917
}
2018

21-
fn result_with_debug_assert_ne(x: i32) -> Result<bool, String>
22-
{
19+
fn result_with_debug_assert_ne(x: i32) -> Result<bool, String> {
2320
debug_assert_ne!(x, 1);
2421
Ok(true)
2522
}
2623

27-
fn other_with_debug_assert_with_message(x: i32)
28-
{
24+
fn other_with_debug_assert_with_message(x: i32) {
2925
debug_assert!(x == 5, "wrong argument");
3026
}
3127

32-
fn other_with_debug_assert_eq(x: i32)
33-
{
28+
fn other_with_debug_assert_eq(x: i32) {
3429
debug_assert_eq!(x, 5);
3530
}
3631

37-
fn other_with_debug_assert_ne(x: i32)
38-
{
32+
fn other_with_debug_assert_ne(x: i32) {
3933
debug_assert_ne!(x, 1);
4034
}
4135

42-
fn result_without_banned_functions() -> Result<bool, String>
43-
{
36+
fn result_without_banned_functions() -> Result<bool, String> {
4437
let debug_assert = "debug_assert!";
4538
println!("No {}", debug_assert);
4639
Ok(true)

0 commit comments

Comments
 (0)