1
Fork 0

Format Struct { .. } on one line even with {:#?}.

This commit is contained in:
Mara Bos 2021-04-21 13:50:56 +02:00
parent c18c0ad2bc
commit 82dc73b1ae
2 changed files with 10 additions and 24 deletions

View file

@ -105,12 +105,7 @@ mod debug_struct {
}
assert_eq!("Foo { .. }", format!("{:?}", Foo));
assert_eq!(
"Foo {
..
}",
format!("{:#?}", Foo)
);
assert_eq!("Foo { .. }", format!("{:#?}", Foo));
}
#[test]