From 9ab3994a19472da4e155b5f7cb9fb5e3d4ce3920 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 26 Apr 2023 16:37:59 -0400 Subject: [PATCH] fixup! refactor(cli): generate `Diagnostic::message` from `print_err` inside `emit_annotated_error` --- cli/src/bin/naga.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/bin/naga.rs b/cli/src/bin/naga.rs index e64e3c0673..e146c60ed7 100644 --- a/cli/src/bin/naga.rs +++ b/cli/src/bin/naga.rs @@ -564,7 +564,7 @@ pub fn emit_annotated_error(ann_err: &WithSpan, filename: &str, sou .unwrap() // NOTE: `replace` is intended to correct the alignment of multi-line messages against the // `error: ` prefix, which is 7 characters. - .replace("\n", "\n "); + .replace('\n', "\n "); let diagnostic = Diagnostic::error().with_message(msg).with_labels( ann_err .spans()