summaryrefslogtreecommitdiff
path: root/src/model/eval.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-24 17:39:08 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-24 17:41:41 +0100
commit8d3c68a1deb28dce2b80ed61f85141180ce6a951 (patch)
treede007203d448d6b6a2df7838e802f85d23ccd1a6 /src/model/eval.rs
parent5ae81971f299688b05d77af208d7bb44ffce5e2d (diff)
Protect Vm
Diffstat (limited to 'src/model/eval.rs')
-rw-r--r--src/model/eval.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/eval.rs b/src/model/eval.rs
index fb1bd121..e68f6e7a 100644
--- a/src/model/eval.rs
+++ b/src/model/eval.rs
@@ -1030,7 +1030,7 @@ impl Eval for ast::ModuleInclude {
}
/// Process an import of a module relative to the current location.
-fn import(vm: &mut Vm, path: &str, span: Span) -> SourceResult<Module> {
+fn import(vm: &Vm, path: &str, span: Span) -> SourceResult<Module> {
// Load the source file.
let full = vm.locate(path).at(span)?;
let id = vm.world.resolve(&full).at(span)?;