Skip to content

Commit 1f78ec0

Browse files
nilotpal-n7lcnr
andcommitted
Applied review suggestion
Co-authored-by: lcnr <[email protected]>
1 parent a21d216 commit 1f78ec0

File tree

1 file changed

+1
-4
lines changed
  • compiler/rustc_parse_format/src

1 file changed

+1
-4
lines changed

compiler/rustc_parse_format/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -858,10 +858,7 @@ impl<'input> Parser<'input> {
858858
self.errors.insert(
859859
0,
860860
ParseError {
861-
description: format!(
862-
"expected `{}` (alignment specifier) after `:` in format string; example: `{{:>#X5}}`",
863-
alignment
864-
),
861+
description: "expected alignment specifier after `:` in format string; example: `{{:>?}}`".to_owned(),
865862
note: Some(
866863
"alignment must be one of `<` (left), `^` (center), or `>` (right)"
867864
.to_string(),

0 commit comments

Comments
 (0)