aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-08 11:23:43 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-08 11:23:43 +0000
commitd70ccebcf12253d4028fba6e4717c87ca1c397cd (patch)
tree025ce9be7cad6201ebe58050179fa4a7071bd062 /crates/ra_syntax
parent1e0948a509e8f6ec7cbb5e2ef77669325fee0637 (diff)
parent50d5e374817823ca88913fe0ce87dcf2a7f17bc8 (diff)
Merge #454
454: If-let to match r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
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