summaryrefslogtreecommitdiff
path: root/crates/typst-pdf
diff options
context:
space:
mode:
authorfrozolotl <44589151+frozolotl@users.noreply.github.com>2024-03-22 13:35:02 +0100
committerGitHub <noreply@github.com>2024-03-22 12:35:02 +0000
commit0a917aba984a13b50178e1bfcc84c42fa2084814 (patch)
tree92579ab651655b4e2ed2e63308faec459337cdfc /crates/typst-pdf
parent41db766b83bad4c4671423c03c5e54f308032e7b (diff)
Fix warnings introduced by rust 1.77 (#3754)
Diffstat (limited to 'crates/typst-pdf')
-rw-r--r--crates/typst-pdf/src/page.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/typst-pdf/src/page.rs b/crates/typst-pdf/src/page.rs
index 0342e9fe..590ee905 100644
--- a/crates/typst-pdf/src/page.rs
+++ b/crates/typst-pdf/src/page.rs
@@ -316,9 +316,7 @@ impl PdfPageLabel {
return None;
};
- let Some((prefix, kind, case)) = pat.pieces.first() else {
- return None;
- };
+ let (prefix, kind, case) = pat.pieces.first()?;
// If there is a suffix, we cannot use the common style optimisation,
// since PDF does not provide a suffix field.