Skip to content

Commit

Permalink
Format assertion in rustfmt style
Browse files Browse the repository at this point in the history
Rustfmt won't fix this because it is inside a macro.
  • Loading branch information
dtolnay committed Oct 9, 2023
1 parent 937bbcd commit fecb02d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fallback.rs
Expand Up @@ -347,7 +347,7 @@ impl FileInfo {
fn offset_line_column(&self, offset: usize) -> LineColumn {
assert!(self.span_within(Span {
lo: offset as u32,
hi: offset as u32
hi: offset as u32,
}));
let offset = offset - self.span.lo as usize;
match self.lines.binary_search(&offset) {
Expand Down

0 comments on commit fecb02d

Please sign in to comment.