diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-05-03 02:37:02 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-05-03 03:29:42 +0200 |
commit | 899951742100b83743ef9f65fbb161454ef4bfa7 (patch) | |
tree | c3615dcf02e89d67d6151f4b9fb27e76e9f5cba6 /core/isolate.rs | |
parent | e4354ce73984668d7a057e1b6f591dd566209369 (diff) |
core,cli: fix clippy warnings
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, } |