mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Various small fixes
This commit is contained in:
parent
e63e323823
commit
556f0c6704
6 changed files with 22 additions and 20 deletions
|
@ -23,7 +23,7 @@ pub fn streaming_output(
|
|||
let idx = if eof {
|
||||
data.len()
|
||||
} else {
|
||||
match data.iter().rposition(|b| *b == b'\n') {
|
||||
match data.iter().rposition(|&b| b == b'\n') {
|
||||
Some(i) => i + 1,
|
||||
None => return,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue