mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
lowercase usize
Co-authored-by: Kivooeo <75776246+Kivooeo@users.noreply.github.com>
This commit is contained in:
@@ -348,7 +348,7 @@ fn push_trailing(
|
||||
hi_opt: Option<&Loc>,
|
||||
) -> usize {
|
||||
let mut line_count = 0;
|
||||
// Convert `CharPos` to `Usize`, as `CharPos` is character offset
|
||||
// Convert `CharPos` to `usize`, as `CharPos` is character offset
|
||||
// Extract low index and high index
|
||||
let (lo, hi_opt) = (lo.col.to_usize(), hi_opt.map(|hi| hi.col.to_usize()));
|
||||
if let Some(line) = line_opt {
|
||||
|
||||
Reference in New Issue
Block a user