diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-01-24 15:10:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 15:10:49 -0500 |
commit | 5e32c5ea448563be91017d71bab060c8a6bd90fe (patch) | |
tree | aa9e731b9f4b9f6bc28beab23e7575d43bc14653 /core/plugins.rs | |
parent | 86726f88f1b6fd168fbd5b0d7e01b027cfc268ac (diff) |
s/PinnedBuf/ZeroCopyBuf (#3782)
Diffstat (limited to 'core/plugins.rs')
-rw-r--r-- | core/plugins.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/plugins.rs b/core/plugins.rs index 53a2e706f..14cfce307 100644 --- a/core/plugins.rs +++ b/core/plugins.rs @@ -1,4 +1,4 @@ -use crate::isolate::PinnedBuf; +use crate::isolate::ZeroCopyBuf; use crate::ops::CoreOp; pub type PluginInitFn = fn(context: &mut dyn PluginInitContext); @@ -7,7 +7,9 @@ pub trait PluginInitContext { fn register_op( &mut self, name: &str, - op: Box<dyn Fn(&[u8], Option<PinnedBuf>) -> CoreOp + Send + Sync + 'static>, + op: Box< + dyn Fn(&[u8], Option<ZeroCopyBuf>) -> CoreOp + Send + Sync + 'static, + >, ); } |