Skip to content

Commit f191b80

Browse files
committed
Refactor
1 parent c4302ea commit f191b80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/hir-def/src/hir/format_args.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ pub(crate) fn parse(
178178
let text = s.text_without_quotes();
179179
let str_style = match s.quote_offsets() {
180180
Some(offsets) => {
181-
let raw = u32::from(offsets.quotes.0.len()) - 1;
181+
let raw = usize::from(offsets.quotes.0.len()) - 1;
182182
// subtract 1 for the `r` prefix
183-
(raw != 0).then(|| raw as usize - 1)
183+
(raw != 0).then(|| raw - 1)
184184
}
185185
None => None,
186186
};

0 commit comments

Comments
 (0)