diff options
| author | cAttte <26514199+cAttte@users.noreply.github.com> | 2025-06-12 11:10:04 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-12 14:10:04 +0000 |
| commit | 4a638f41cde37312390359a5345073bed5835ae6 (patch) | |
| tree | 155167a5a20d52469478e65f0d8275ddfa81e16e /crates/typst-library/src | |
| parent | f9897479d2a8a865c4033bc44ec9a85fb5000795 (diff) | |
Consume `data` argument in `pdf.embed()` (#6435)
Diffstat (limited to 'crates/typst-library/src')
| -rw-r--r-- | crates/typst-library/src/pdf/embed.rs | 2 |
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)?, } |
