7

Github Format `Struct { .. }` on one line even with `{:#?}`. by m-ou-se · Pull R...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/84390
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Member

m-ou-se commented 17 days ago

The result of debug_struct("A").finish_non_exhaustive() before this change:

A {
    ..
}

And after this change:

A { .. }

If there's any fields, the result stays unchanged:

A {
    field: value,
    ..
}

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK