diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-21 12:27:40 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-21 12:27:40 +0200 |
| commit | 929f4d64fef8054cbaf34d556467a7d2b9d09b47 (patch) | |
| tree | ca2d071033659754db2e3e3a363431c1f9901d4d /src/font.rs | |
| parent | b0e5212973ce2efcb1433323d67c06eea1a81785 (diff) | |
Switch Loader from Option to io::Result
Diffstat (limited to 'src/font.rs')
| -rw-r--r-- | src/font.rs | 2 |
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)) } }; |
