Skip to content

Commit 48b68db

Browse files
committed
Ignore formatting options for padding, alignment, width
1 parent e5b23db commit 48b68db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/fallback.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ impl Display for Ident {
889889
if self.raw {
890890
f.write_str("r#")?;
891891
}
892-
Display::fmt(&self.sym, f)
892+
f.write_str(&self.sym)
893893
}
894894
}
895895

tests/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,11 +709,11 @@ fn raw_identifier() {
709709
fn test_display_ident() {
710710
let ident = Ident::new("proc_macro", Span::call_site());
711711
assert_eq!(format!("{ident}"), "proc_macro");
712-
assert_eq!(format!("{ident:-^14}"), "--proc_macro--");
712+
assert_eq!(format!("{ident:-^14}"), "proc_macro");
713713

714714
let ident = Ident::new_raw("proc_macro", Span::call_site());
715715
assert_eq!(format!("{ident}"), "r#proc_macro");
716-
assert_eq!(format!("{ident:-^14}"), "r#--proc_macro--"); // FIXME
716+
assert_eq!(format!("{ident:-^14}"), "r#proc_macro");
717717
}
718718

719719
#[test]

0 commit comments

Comments
 (0)