Format Struct { .. }
on one line even with {:#?}
.
This commit is contained in:
parent
c18c0ad2bc
commit
82dc73b1ae
2 changed files with 10 additions and 24 deletions
|
@ -105,12 +105,7 @@ mod debug_struct {
|
|||
}
|
||||
|
||||
assert_eq!("Foo { .. }", format!("{:?}", Foo));
|
||||
assert_eq!(
|
||||
"Foo {
|
||||
..
|
||||
}",
|
||||
format!("{:#?}", Foo)
|
||||
);
|
||||
assert_eq!("Foo { .. }", format!("{:#?}", Foo));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue