diff options
Diffstat (limited to 'crates/ra_syntax/src/ast.rs')
-rw-r--r-- | crates/ra_syntax/src/ast.rs | 2 |
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 | ||