aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-06 13:44:44 +0000
committerAleksey Kladov <[email protected]>2020-03-06 13:44:44 +0000
commitfb5891c4330e577f5d6891be529141695ce36d4f (patch)
tree6c7f1384e77c29b9bdc3080acfbaadb1bcb01f0f /crates/ra_db/src
parentea0c124219da33462b9d0be93f7abe0478cc7af2 (diff)
Source map returns a result
cc #2236
Diffstat (limited to 'crates/ra_db/src')
-rw-r--r--crates/ra_db/src/fixture.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_db/src/fixture.rs b/crates/ra_db/src/fixture.rs
index 17cd138c2..da7af110c 100644
--- a/crates/ra_db/src/fixture.rs
+++ b/crates/ra_db/src/fixture.rs
@@ -21,9 +21,9 @@ pub trait WithFixture: Default + SourceDatabaseExt + 'static {
21 (db, file_id) 21 (db, file_id)
22 } 22 }
23 23
24 fn with_files(fixture: &str) -> Self { 24 fn with_files(ra_fixture: &str) -> Self {
25 let mut db = Self::default(); 25 let mut db = Self::default();
26 let pos = with_files(&mut db, fixture); 26 let pos = with_files(&mut db, ra_fixture);
27 assert!(pos.is_none()); 27 assert!(pos.is_none());
28 db 28 db
29 } 29 }