aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-08 11:21:29 +0000
committerAleksey Kladov <[email protected]>2019-01-08 11:21:29 +0000
commit96236a9be542be461550083373be3d0cb0bd8406 (patch)
tree82cfc789fcfeea452e6fb729c6af3d7c840be173 /crates/ra_syntax
parent1e0948a509e8f6ec7cbb5e2ef77669325fee0637 (diff)
assist to convert if-let to match
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r--crates/ra_syntax/src/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs
index 96879ae5a..d25b5642b 100644
--- a/crates/ra_syntax/src/ast.rs
+++ b/crates/ra_syntax/src/ast.rs
@@ -225,7 +225,7 @@ impl Whitespace {
225 } 225 }
226 226
227 pub fn has_newlines(&self) -> bool { 227 pub fn has_newlines(&self) -> bool {
228 self.count_newlines_lazy().count() > 0 228 self.text().contains('\n')
229 } 229 }
230} 230}
231 231