diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-16 17:56:23 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-16 17:56:36 +0200 |
| commit | a741bd6b83d1e374c8218b5439e26522499cc4ae (patch) | |
| tree | 796ef8b8ae2186a082f37a2aa4732c9bba7d2bdf /src/image.rs | |
| parent | 6536e9e069616b862ebb774c7bef1b886c069350 (diff) | |
Absolute paths
Diffstat (limited to 'src/image.rs')
| -rw-r--r-- | src/image.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/image.rs b/src/image.rs index 24a0deec..87c093d3 100644 --- a/src/image.rs +++ b/src/image.rs @@ -48,7 +48,8 @@ impl ImageStore { } } - /// Load and decode an image file from a path. + /// Load and decode an image file from a path relative to the compilation + /// environment's root. pub fn load(&mut self, path: &Path) -> io::Result<ImageId> { let hash = self.loader.resolve(path)?; Ok(*match self.files.entry(hash) { |
