summaryrefslogtreecommitdiff
path: root/src/font.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-21 12:27:40 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-21 12:27:40 +0200
commit929f4d64fef8054cbaf34d556467a7d2b9d09b47 (patch)
treeca2d071033659754db2e3e3a363431c1f9901d4d /src/font.rs
parentb0e5212973ce2efcb1433323d67c06eea1a81785 (diff)
Switch Loader from Option to io::Result
Diffstat (limited to 'src/font.rs')
-rw-r--r--src/font.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font.rs b/src/font.rs
index 0d6cd880..93c21441 100644
--- a/src/font.rs
+++ b/src/font.rs
@@ -281,7 +281,7 @@ impl FontCache {
let buffer = match self.buffers.entry(file) {
Entry::Occupied(entry) => entry.into_mut(),
Entry::Vacant(entry) => {
- let buffer = self.loader.load_file(file)?;
+ let buffer = self.loader.load_file(file).ok()?;
entry.insert(Rc::new(buffer))
}
};