summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/pdf/embed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/pdf/embed.rs')
-rw-r--r--crates/typst-library/src/pdf/embed.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/pdf/embed.rs b/crates/typst-library/src/pdf/embed.rs
index f902e7f1..4c01cd65 100644
--- a/crates/typst-library/src/pdf/embed.rs
+++ b/crates/typst-library/src/pdf/embed.rs
@@ -59,7 +59,7 @@ pub struct EmbedElem {
// We can't distinguish between the two at the moment.
#[required]
#[parse(
- match args.find::<Bytes>()? {
+ match args.eat::<Bytes>()? {
Some(data) => data,
None => engine.world.file(id).at(span)?,
}