diff options
| author | Mitchell Hashimoto <m@mitchellh.com> | 2024-10-17 22:00:05 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <m@mitchellh.com> | 2024-10-18 08:10:41 -0700 |
| commit | 3f1d6eb301a7fb3d967c7f17c555c8dd761d900c (patch) | |
| tree | 91d531dba54e8fb547be02fe2270e44e9c2ae372 /src/font/Collection.zig | |
| parent | 913c4b5801b0d3881eabbe93dec5a2c40fefe65f (diff) | |
expand explicit error set usage
This continues our work to improve the amount of explicit error sets
we use in the codebase. Explicit error sets make it easier to understand
possible failure scenarios, allow us to use exhaustive matching, create
compiler errors if errors are unexpectedly added or removed, etc.
The goal eventually is 100% coverage but we're not even close yet.
This just moves us a little closer.
Diffstat (limited to 'src/font/Collection.zig')
| -rw-r--r-- | src/font/Collection.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font/Collection.zig b/src/font/Collection.zig index 8f338be16..476787749 100644 --- a/src/font/Collection.zig +++ b/src/font/Collection.zig @@ -118,7 +118,7 @@ pub fn getFace(self: *Collection, index: Index) !*Face { break :item item; }; - return self.getFaceFromEntry(item); + return try self.getFaceFromEntry(item); } /// Get the face from an entry. |
