You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[derive(Debug)]
struct MyCustomStruct {
my_really_long_name_with_a_long_type:
// A comment.
std::sync::Arc<std::sync::Mutex<std::collections::HashSet<String>>>,
}
And then run cargo fmt, the comment gets deleted and the struct looks like the 1st code snippet again. Not sure whether or not it's expected...
Am happy to provide more details, and apologies if something has already been filed for this (skimming the open issues I saw a few similar, but not quite-the-same, items, but I may have just missed it)!
The text was updated successfully, but these errors were encountered:
System/Tool Info
Repro Steps
I wrote the following snippet of code:
If I try to add a comment here:
And then run
cargo fmt
, the comment gets deleted and the struct looks like the 1st code snippet again. Not sure whether or not it's expected...Am happy to provide more details, and apologies if something has already been filed for this (skimming the open issues I saw a few similar, but not quite-the-same, items, but I may have just missed it)!
The text was updated successfully, but these errors were encountered: