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
Rust has this nifty feature that a trailing backslash ignores leading whitespace on the next line when found in a string constant. This means that if I have a Rust source file like:
fnmain(){println!("foo\bar");}
I can instead indent it like:
fnmain(){println!("foo\ bar");}
But rustfmt doesn't do this, from what I can tell. Perhaps we ought to?
The text was updated successfully, but these errors were encountered:
@marcusklaas hmm, are there older issues yo can point me at? in what way could it not do the right thing? it seems like if people don't want the strings aligned, they should not use \...
Rust has this nifty feature that a trailing backslash ignores leading whitespace on the next line when found in a string constant. This means that if I have a Rust source file like:
I can instead indent it like:
But rustfmt doesn't do this, from what I can tell. Perhaps we ought to?
The text was updated successfully, but these errors were encountered: