summaryrefslogtreecommitdiff
path: root/src/source.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-09-19 17:44:40 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-19 17:44:40 +0200
commite29f55bb294cc298daad97accf6d8a76976b409c (patch)
treecc4db3b61fa23e13f781e992c63427d36e77ef8c /src/source.rs
parent59f67b79c7ff50f0bc9a27373d0fa36d1523e08a (diff)
Remove font store
Diffstat (limited to 'src/source.rs')
-rw-r--r--src/source.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/source.rs b/src/source.rs
index 22648019..24d830ad 100644
--- a/src/source.rs
+++ b/src/source.rs
@@ -81,7 +81,7 @@ impl SourceStore {
return Ok(id);
}
- let data = self.loader.load(path)?;
+ let data = self.loader.file(path)?;
let src = String::from_utf8(data.to_vec()).map_err(|_| {
io::Error::new(io::ErrorKind::InvalidData, "file is not valid utf-8")
})?;
@@ -96,7 +96,7 @@ impl SourceStore {
///
/// The `path` does not need to be [resolvable](Loader::resolve) through the
/// `loader`. If it is though, imports that resolve to the same file hash
- /// will use the inserted file instead of going through [`Loader::load`].
+ /// will use the inserted file instead of going through [`Loader::file`].
///
/// If the path is resolvable and points to an existing source file, it is
/// [replaced](Source::replace).