assist to convert if-let to match

This commit is contained in:
Aleksey Kladov 2019-01-08 14:21:29 +03:00
parent 1e0948a509
commit 96236a9be5
4 changed files with 120 additions and 2 deletions

View file

@ -225,7 +225,7 @@ impl Whitespace {
}
pub fn has_newlines(&self) -> bool {
self.count_newlines_lazy().count() > 0
self.text().contains('\n')
}
}