-
Notifications
You must be signed in to change notification settings - Fork 925
Weird newline in string literal #1210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In impl Foo {
fn cxx(&self, target: &str) -> &Path {
match self.cxx.get(target) {
Some(p) => p.path(),
None => panic!("\n\ntarget `{}` is not configured as a host,
only as a target\n\n", target),
}
}
} to impl Foo {
fn cxx(&self, target: &str) -> &Path {
match self.cxx.get(target) {
Some(p) => p.path(),
None => {
panic!("\n\ntarget `{}` is not configured as a host,
only as a target\n\n",
target)
}
}
}
} so the weird newline is gone. |
This only reproduces with the |
Just setting rustfmt.toml: format_strings = true
max_width = 50 Output: impl Foo {
fn cxx(&self, target: &str) -> &Path {
match self.cxx.get(target) {
Some(p) => p.path(),
None => {
panic!("\n\ntarget `{}` is not \
configured as a host,
\
only as a target\n\n",
target)
}
}
}
} |
@nrc @topecongiro I am having a look at this issue and I was wondering if you could clarify the signature of However, it seems that the
Could it be that argument is a left-over of a previous refactoring ? Could it be removed ? |
The text was updated successfully, but these errors were encountered: