diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-30 11:48:51 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-30 11:48:51 +0200 |
| commit | 65c0c5607e56ca8bc7866d94b2496a25e096149a (patch) | |
| tree | 2cb087a9ff524aefa6cff7fc7e1629aaa6bc886b /src/layout/shaping.rs | |
| parent | 470f8001a1dba0022ec9d3e46c67c3bbc31359be (diff) | |
Make clippy a bit happier
Diffstat (limited to 'src/layout/shaping.rs')
| -rw-r--r-- | src/layout/shaping.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/layout/shaping.rs b/src/layout/shaping.rs index 021e9ecc..2496aae0 100644 --- a/src/layout/shaping.rs +++ b/src/layout/shaping.rs @@ -235,9 +235,8 @@ fn shape_segment<'a>( } } - match ctx.cache.font.select(ctx.loader, family, variant) { - Some(id) => break (id, true), - None => {} + if let Some(id) = ctx.cache.font.select(ctx.loader, family, variant) { + break (id, true); } } // We're out of families, so we don't do any more fallback and just |
