Skip to content

Commit 515262c

Browse files
authored
Ascript type explicitly
1 parent 61bc38e commit 515262c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_errors/emitter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ impl EmitterWriter {
15011501
.saturating_sub(part.snippet.trim_start().len());
15021502
// ...or trailing spaces. Account for substitutions containing unicode
15031503
// characters.
1504-
let sub_len = part.snippet.trim().chars()
1504+
let sub_len: usize = part.snippet.trim().chars()
15051505
.map(|ch| unicode_width::UnicodeWidthChar::width(ch).unwrap_or(1))
15061506
.sum();
15071507

0 commit comments

Comments
 (0)