summaryrefslogtreecommitdiff
path: root/cli/state.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-05-01 18:22:32 -0400
committerGitHub <noreply@github.com>2019-05-01 18:22:32 -0400
commitc171813e894f0759abb1b80413aa2a24dbad079b (patch)
tree25ab50f1d9a37f827f8cf063c181512f3d961edb /cli/state.rs
parent2f4fefd0f6a5c43724ee8d19b008018c28c7c323 (diff)
core: express op as enum (#2255)
Diffstat (limited to 'cli/state.rs')
-rw-r--r--cli/state.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/cli/state.rs b/cli/state.rs
index 2bfc641d5..8a4f4eaee 100644
--- a/cli/state.rs
+++ b/cli/state.rs
@@ -81,11 +81,7 @@ impl Deref for ThreadSafeState {
}
impl ThreadSafeState {
- pub fn dispatch(
- &self,
- control: &[u8],
- zero_copy: Option<PinnedBuf>,
- ) -> (bool, Box<Op>) {
+ pub fn dispatch(&self, control: &[u8], zero_copy: Option<PinnedBuf>) -> Op {
ops::dispatch_all(self, control, zero_copy, self.dispatch_selector)
}
}