summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-06-10 20:13:33 +0200
committerGitHub <noreply@github.com>2025-06-10 18:13:33 +0000
commit98034903e4184708dbaf3cf6b23a4f4de5e910ec (patch)
tree449ded5f9157587720ee6cdf656b18a121db4a74 /tests/src
parenta6ab6ac99a3db30d833f60e59959785f60fdc853 (diff)
Adjust source file API surface (#6423)
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/world.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/world.rs b/tests/src/world.rs
index bc3e690b..68a65c1b 100644
--- a/tests/src/world.rs
+++ b/tests/src/world.rs
@@ -92,7 +92,7 @@ impl TestWorld {
self.slot(id, |slot| {
if let Some(source) = slot.source.get() {
let source = source.as_ref().expect("file is not valid");
- source.lines()
+ source.lines().clone()
} else if let Some(bytes) = slot.file.get() {
let bytes = bytes.as_ref().expect("file is not valid");
Lines::try_from(bytes).expect("file is not valid utf-8")