We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4302ea commit f191b80Copy full SHA for f191b80
crates/hir-def/src/hir/format_args.rs
@@ -178,9 +178,9 @@ pub(crate) fn parse(
178
let text = s.text_without_quotes();
179
let str_style = match s.quote_offsets() {
180
Some(offsets) => {
181
- let raw = u32::from(offsets.quotes.0.len()) - 1;
+ let raw = usize::from(offsets.quotes.0.len()) - 1;
182
// subtract 1 for the `r` prefix
183
- (raw != 0).then(|| raw as usize - 1)
+ (raw != 0).then(|| raw - 1)
184
}
185
None => None,
186
};
0 commit comments