diff options
Diffstat (limited to 'core/isolate.rs')
-rw-r--r-- | core/isolate.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/isolate.rs b/core/isolate.rs index 96d9dc24b..b51b7fe47 100644 --- a/core/isolate.rs +++ b/core/isolate.rs @@ -50,9 +50,11 @@ pub enum StartupData<'a> { None, } +type DispatchFn = Fn(&[u8], Option<PinnedBuf>) -> Op; + #[derive(Default)] pub struct Config { - dispatch: Option<Arc<Fn(&[u8], Option<PinnedBuf>) -> Op>>, + dispatch: Option<Arc<DispatchFn>>, pub will_snapshot: bool, } |