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_hir/src/mock.rs | |
parent | 5cb1d41a30d25cbe136402644bf5434dd667f1e5 (diff) |
reformat the world
Diffstat (limited to 'crates/ra_hir/src/mock.rs')
-rw-r--r-- | crates/ra_hir/src/mock.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_hir/src/mock.rs b/crates/ra_hir/src/mock.rs index 87095fb21..950f89948 100644 --- a/crates/ra_hir/src/mock.rs +++ b/crates/ra_hir/src/mock.rs | |||
@@ -64,10 +64,7 @@ impl MockDatabase { | |||
64 | let mut source_root = SourceRoot::default(); | 64 | let mut source_root = SourceRoot::default(); |
65 | for entry in parse_fixture(fixture) { | 65 | for entry in parse_fixture(fixture) { |
66 | if entry.text.contains(CURSOR_MARKER) { | 66 | if entry.text.contains(CURSOR_MARKER) { |
67 | assert!( | 67 | assert!(position.is_none(), "only one marker (<|>) per fixture is allowed"); |
68 | position.is_none(), | ||
69 | "only one marker (<|>) per fixture is allowed" | ||
70 | ); | ||
71 | position = Some(self.add_file_with_position( | 68 | position = Some(self.add_file_with_position( |
72 | source_root_id, | 69 | source_root_id, |
73 | &mut source_root, | 70 | &mut source_root, |