mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
Remove old Buf definition in cli.rs (#1971)
This commit is contained in:
parent
fb2c0c29ec
commit
6131152a57
6 changed files with 6 additions and 10 deletions
|
@ -14,11 +14,6 @@ use deno_core::StartupData;
|
||||||
use std::sync::atomic::Ordering;
|
use std::sync::atomic::Ordering;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
// Buf represents a byte array returned from a "Op". The message might be empty
|
|
||||||
// (which will be translated into a null object on the javascript side) or it is
|
|
||||||
// a heap allocated opaque sequence of bytes. Usually a flatbuffer message.
|
|
||||||
pub type Buf = Box<[u8]>;
|
|
||||||
|
|
||||||
/// Implements deno_core::Behavior for the main Deno command-line.
|
/// Implements deno_core::Behavior for the main Deno command-line.
|
||||||
pub struct Cli {
|
pub struct Cli {
|
||||||
startup_data: Option<StartupData>,
|
startup_data: Option<StartupData>,
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
use crate::cli::Buf;
|
|
||||||
use crate::isolate_state::IsolateState;
|
use crate::isolate_state::IsolateState;
|
||||||
use crate::msg;
|
use crate::msg;
|
||||||
use crate::permissions::{DenoPermissions, PermissionAccessor};
|
use crate::permissions::{DenoPermissions, PermissionAccessor};
|
||||||
|
@ -8,6 +7,7 @@ use crate::resources::Resource;
|
||||||
use crate::resources::ResourceId;
|
use crate::resources::ResourceId;
|
||||||
use crate::startup_data;
|
use crate::startup_data;
|
||||||
use crate::workers;
|
use crate::workers;
|
||||||
|
use deno_core::Buf;
|
||||||
use futures::Future;
|
use futures::Future;
|
||||||
use serde_json;
|
use serde_json;
|
||||||
use std::str;
|
use std::str;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
use crate::cli::Buf;
|
|
||||||
use crate::deno_dir;
|
use crate::deno_dir;
|
||||||
use crate::flags;
|
use crate::flags;
|
||||||
use crate::global_timer::GlobalTimer;
|
use crate::global_timer::GlobalTimer;
|
||||||
use crate::modules::Modules;
|
use crate::modules::Modules;
|
||||||
|
use deno_core::Buf;
|
||||||
use futures::sync::mpsc as async_mpsc;
|
use futures::sync::mpsc as async_mpsc;
|
||||||
use std;
|
use std;
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
use atty;
|
use atty;
|
||||||
use crate::ansi;
|
use crate::ansi;
|
||||||
use crate::cli::Buf;
|
|
||||||
use crate::cli::Cli;
|
use crate::cli::Cli;
|
||||||
use crate::errors;
|
use crate::errors;
|
||||||
use crate::errors::{permission_denied, DenoError, DenoResult, ErrorKind};
|
use crate::errors::{permission_denied, DenoError, DenoResult, ErrorKind};
|
||||||
|
@ -21,6 +20,7 @@ use crate::tokio_util;
|
||||||
use crate::tokio_write;
|
use crate::tokio_write;
|
||||||
use crate::version;
|
use crate::version;
|
||||||
use deno_core::deno_buf;
|
use deno_core::deno_buf;
|
||||||
|
use deno_core::Buf;
|
||||||
use deno_core::JSError;
|
use deno_core::JSError;
|
||||||
use deno_core::Op;
|
use deno_core::Op;
|
||||||
use flatbuffers::FlatBufferBuilder;
|
use flatbuffers::FlatBufferBuilder;
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// descriptors". This module implements a global resource table. Ops (AKA
|
// descriptors". This module implements a global resource table. Ops (AKA
|
||||||
// handlers) look up resources by their integer id here.
|
// handlers) look up resources by their integer id here.
|
||||||
|
|
||||||
use crate::cli::Buf;
|
|
||||||
use crate::errors;
|
use crate::errors;
|
||||||
use crate::errors::bad_resource;
|
use crate::errors::bad_resource;
|
||||||
use crate::errors::DenoError;
|
use crate::errors::DenoError;
|
||||||
|
@ -17,6 +16,8 @@ use crate::http_body::HttpBody;
|
||||||
use crate::isolate_state::WorkerChannels;
|
use crate::isolate_state::WorkerChannels;
|
||||||
use crate::repl::Repl;
|
use crate::repl::Repl;
|
||||||
|
|
||||||
|
use deno_core::Buf;
|
||||||
|
|
||||||
use futures;
|
use futures;
|
||||||
use futures::Future;
|
use futures::Future;
|
||||||
use futures::Poll;
|
use futures::Poll;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
use crate::cli::Buf;
|
|
||||||
use crate::cli::Cli;
|
use crate::cli::Cli;
|
||||||
use crate::flags::DenoFlags;
|
use crate::flags::DenoFlags;
|
||||||
use crate::isolate::Isolate;
|
use crate::isolate::Isolate;
|
||||||
|
@ -9,6 +8,7 @@ use crate::js_errors::JSErrorColor;
|
||||||
use crate::permissions::DenoPermissions;
|
use crate::permissions::DenoPermissions;
|
||||||
use crate::resources;
|
use crate::resources;
|
||||||
use crate::tokio_util;
|
use crate::tokio_util;
|
||||||
|
use deno_core::Buf;
|
||||||
use deno_core::JSError;
|
use deno_core::JSError;
|
||||||
use deno_core::StartupData;
|
use deno_core::StartupData;
|
||||||
use futures::future::lazy;
|
use futures::future::lazy;
|
||||||
|
|
Loading…
Reference in a new issue