From 98034903e4184708dbaf3cf6b23a4f4de5e910ec Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 10 Jun 2025 20:13:33 +0200 Subject: Adjust source file API surface (#6423) --- tests/src/world.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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") -- cgit v1.2.3