diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-23 15:58:59 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-23 16:07:54 +0100 |
| commit | 5ae81971f299688b05d77af208d7bb44ffce5e2d (patch) | |
| tree | 35b914f9bdf5565d4602c4bdda08ccbc30977df4 /src/model/vm.rs | |
| parent | b2a3d3f235fb5a23322435b854460f52db772114 (diff) | |
Introduce `Library`
Diffstat (limited to 'src/model/vm.rs')
| -rw-r--r-- | src/model/vm.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/vm.rs b/src/model/vm.rs index 28885f29..d13be29c 100644 --- a/src/model/vm.rs +++ b/src/model/vm.rs @@ -38,7 +38,7 @@ impl<'a> Vm<'a> { location, scopes, flow: None, - items: world.config().items, + items: world.library().items.clone(), } } @@ -47,7 +47,7 @@ impl<'a> Vm<'a> { pub fn locate(&self, path: &str) -> StrResult<PathBuf> { if !self.location.is_detached() { if let Some(path) = path.strip_prefix('/') { - return Ok(self.world.config().root.join(path).normalize()); + return Ok(self.world.root().join(path).normalize()); } if let Some(dir) = self.world.source(self.location).path().parent() { |
