From bdc97b3976786bb744a27e59b0f4f28554a682df Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 21 Aug 2019 20:42:48 -0400 Subject: Organize dispatch a bit (#2796) Just some clean up reorganization around flatbuffer/minimal dispatch code. This is prep for adding a JSON dispatcher. --- cli/ops/fs.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cli/ops/fs.rs') diff --git a/cli/ops/fs.rs b/cli/ops/fs.rs index 6530e3816..d46ed91e1 100644 --- a/cli/ops/fs.rs +++ b/cli/ops/fs.rs @@ -1,18 +1,14 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. +use super::dispatch_flatbuffers::serialize_response; +use super::utils::*; use crate::deno_error::DenoError; use crate::deno_error::ErrorKind; use crate::fs as deno_fs; use crate::msg; -use crate::ops::blocking; -use crate::ops::empty_buf; -use crate::ops::ok_buf; -use crate::ops::serialize_response; -use crate::ops::CliOpResult; use crate::state::ThreadSafeState; use deno::*; use flatbuffers::FlatBufferBuilder; use remove_dir_all::remove_dir_all; -use std; use std::convert::From; use std::fs; use std::path::PathBuf; -- cgit v1.2.3