Skip to content

Commit ccb9429

Browse files
committed
Fix rust-analyzer for 16-bit fmt width and precision.
1 parent 0f9dcd8 commit ccb9429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/hir-def/src/hir/format_args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub enum FormatAlignment {
137137
#[derive(Clone, Debug, PartialEq, Eq)]
138138
pub enum FormatCount {
139139
/// `{:5}` or `{:.5}`
140-
Literal(usize),
140+
Literal(u16),
141141
/// `{:.*}`, `{:.5$}`, or `{:a$}`, etc.
142142
Argument(FormatArgPosition),
143143
}

0 commit comments

Comments
 (0)