Skip to content

Weird newline in string literal #1210

Closed
@nrc

Description

@nrc
     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),
+            None => {
+                panic!("\n\ntarget `{}` is not configured as a host,
+                            \
+                        only as a target\n\n",
+                       target)
+            }
         }
     }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPanic, non-idempotency, invalid code, etc.only-with-optionrequires a non-default option value to reproducepoor-formatting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions