diff options
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, + >, ); } |