summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/foundations/plugin.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-01-08 11:57:56 +0100
committerGitHub <noreply@github.com>2025-01-08 10:57:56 +0000
commitdacd6acd5e73d35c6e7a7a3b144f16ae70d03daa (patch)
treeca75ce7d4d5365fbe2424a356cefe9cb223d429f /crates/typst-library/src/foundations/plugin.rs
parent0a374d238016c0101d11cbc3f4bc621f3895ad36 (diff)
More flexible and efficient `Bytes` representation (#5670)
Diffstat (limited to 'crates/typst-library/src/foundations/plugin.rs')
-rw-r--r--crates/typst-library/src/foundations/plugin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/foundations/plugin.rs b/crates/typst-library/src/foundations/plugin.rs
index f57257a4..a7c341d8 100644
--- a/crates/typst-library/src/foundations/plugin.rs
+++ b/crates/typst-library/src/foundations/plugin.rs
@@ -293,7 +293,7 @@ impl Plugin {
_ => bail!("plugin did not respect the protocol"),
};
- Ok(output.into())
+ Ok(Bytes::new(output))
}
/// An iterator over all the function names defined by the plugin.