diff options
author | Aleksey Kladov <[email protected]> | 2019-02-08 11:49:43 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-08 11:49:43 +0000 |
commit | 12e3b4c70b5ef23b2fdfc197296d483680e125f9 (patch) | |
tree | 71baa0e0a62f9f6b61450501c5f821f67badf9e4 /crates/ra_text_edit/src/text_edit.rs | |
parent | 5cb1d41a30d25cbe136402644bf5434dd667f1e5 (diff) |
reformat the world
Diffstat (limited to 'crates/ra_text_edit/src/text_edit.rs')
-rw-r--r-- | crates/ra_text_edit/src/text_edit.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ra_text_edit/src/text_edit.rs b/crates/ra_text_edit/src/text_edit.rs index 363b3d8c0..8522f99bd 100644 --- a/crates/ra_text_edit/src/text_edit.rs +++ b/crates/ra_text_edit/src/text_edit.rs | |||
@@ -25,9 +25,7 @@ impl TextEditBuilder { | |||
25 | TextEdit::from_atoms(self.atoms) | 25 | TextEdit::from_atoms(self.atoms) |
26 | } | 26 | } |
27 | pub fn invalidates_offset(&self, offset: TextUnit) -> bool { | 27 | pub fn invalidates_offset(&self, offset: TextUnit) -> bool { |
28 | self.atoms | 28 | self.atoms.iter().any(|atom| atom.delete.contains_inclusive(offset)) |
29 | .iter() | ||
30 | .any(|atom| atom.delete.contains_inclusive(offset)) | ||
31 | } | 29 | } |
32 | } | 30 | } |
33 | 31 | ||