mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Simplify
This commit is contained in:
parent
bfb187aacd
commit
5374ebbf36
12 changed files with 62 additions and 53 deletions
|
@ -305,7 +305,7 @@ fn extract_line_annotations(mut line: &str) -> Vec<LineAnnotation> {
|
|||
}
|
||||
let range = TextRange::at(offset, len.try_into().unwrap());
|
||||
let line_no_caret = &line[len..];
|
||||
let end_marker = line_no_caret.find(|c| c == '$');
|
||||
let end_marker = line_no_caret.find('$');
|
||||
let next = line_no_caret.find(marker).map_or(line.len(), |it| it + len);
|
||||
|
||||
let cond = |end_marker| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue