We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb2d284 commit 5518a65Copy full SHA for 5518a65
crates/base_db/src/fixture.rs
@@ -54,7 +54,9 @@ pub trait WithFixture: Default + SourceDatabaseExt + 'static {
54
let fixture = ChangeFixture::parse(ra_fixture);
55
let mut db = Self::default();
56
fixture.change.apply(&mut db);
57
- let (file_id, range_or_offset) = fixture.file_position.unwrap();
+ let (file_id, range_or_offset) = fixture
58
+ .file_position
59
+ .expect("Could not find file position in fixture. Did you forget to add an `$0`?");
60
(db, file_id, range_or_offset)
61
}
62
0 commit comments