mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
make criterion args work, small simplification
This commit is contained in:
parent
dc2afae991
commit
c886b72dab
3 changed files with 18 additions and 18 deletions
|
@ -270,9 +270,6 @@ pub fn translate_offset_with_edit(
|
|||
Step::Newline(n) => {
|
||||
if offset < *n {
|
||||
return res.to_line_col(offset);
|
||||
} else if offset == *n {
|
||||
res.add_line(*n);
|
||||
return res.to_line_col(offset);
|
||||
} else {
|
||||
res.add_line(*n);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue