diff options
Diffstat (limited to 'crates/typst-utils/src/pico.rs')
| -rw-r--r-- | crates/typst-utils/src/pico.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/typst-utils/src/pico.rs b/crates/typst-utils/src/pico.rs index 2c80d37d..ce43667e 100644 --- a/crates/typst-utils/src/pico.rs +++ b/crates/typst-utils/src/pico.rs @@ -95,10 +95,7 @@ impl PicoStr { } }; - match NonZeroU64::new(value) { - Some(value) => Ok(Self(value)), - None => unreachable!(), - } + Ok(Self(NonZeroU64::new(value).unwrap())) } /// Resolve to a decoded string. |
