mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
assist to convert if-let to match
This commit is contained in:
parent
1e0948a509
commit
96236a9be5
4 changed files with 120 additions and 2 deletions
|
@ -225,7 +225,7 @@ impl Whitespace {
|
|||
}
|
||||
|
||||
pub fn has_newlines(&self) -> bool {
|
||||
self.count_newlines_lazy().count() > 0
|
||||
self.text().contains('\n')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue