diff options
| author | Tobias Schmitz <tobiasschmitz2001@gmail.com> | 2025-06-11 12:19:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-11 10:19:41 +0000 |
| commit | d1c7757da8e84ac68dcf58546a7bbaebceea8277 (patch) | |
| tree | 75a11dfcab47144ebb4b3529201e8b6351e49b2d /tests/src/world.rs | |
| parent | 71032c83499e15103ee733619d472fdd354fbdf5 (diff) | |
Fix panic when test source is not found in world (#6428)
Diffstat (limited to 'tests/src/world.rs')
| -rw-r--r-- | tests/src/world.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/world.rs b/tests/src/world.rs index 68a65c1b..6fa1cf60 100644 --- a/tests/src/world.rs +++ b/tests/src/world.rs @@ -88,7 +88,7 @@ impl TestWorld { /// Lookup line metadata for a file by id. #[track_caller] - pub fn lookup(&self, id: FileId) -> Lines<String> { + pub(crate) fn lookup(&self, id: FileId) -> Lines<String> { self.slot(id, |slot| { if let Some(source) = slot.source.get() { let source = source.as_ref().expect("file is not valid"); |
