fn main() -> Result<(), Box<dyn std::error::Error>> {
if false {
return Ok(()); // 8901234567890123456789012345678901234567890
// 12345
}
if true {
if true {
if true {
if true {
if true {
return Ok(()); // The workspace has been deleted
// (see above)
}
}
}
}
}
Ok(())
}
@fowles to the best of my knowledge wrap_commetns won't unwrap / reflow text, and I believe this is the intended behavior. This seems like it's a duplicate of https://github.com/rust-lang/rustfmt/issues/2968.
when formatted with
this should unwrap both line comments as they will both fit within 100 characters.