1
0
Fork 0
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:
andy finch 2019-03-19 16:47:35 -04:00 committed by Ryan Dahl
parent fb2c0c29ec
commit 6131152a57
6 changed files with 6 additions and 10 deletions

View file

@ -14,11 +14,6 @@ use deno_core::StartupData;
use std::sync::atomic::Ordering;
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.
pub struct Cli {
startup_data: Option<StartupData>,

View file

@ -1,5 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
use crate::cli::Buf;
use crate::isolate_state::IsolateState;
use crate::msg;
use crate::permissions::{DenoPermissions, PermissionAccessor};
@ -8,6 +7,7 @@ use crate::resources::Resource;
use crate::resources::ResourceId;
use crate::startup_data;
use crate::workers;
use deno_core::Buf;
use futures::Future;
use serde_json;
use std::str;

View file

@ -1,9 +1,9 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
use crate::cli::Buf;
use crate::deno_dir;
use crate::flags;
use crate::global_timer::GlobalTimer;
use crate::modules::Modules;
use deno_core::Buf;
use futures::sync::mpsc as async_mpsc;
use std;
use std::env;

View file

@ -1,7 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
use atty;
use crate::ansi;
use crate::cli::Buf;
use crate::cli::Cli;
use crate::errors;
use crate::errors::{permission_denied, DenoError, DenoResult, ErrorKind};
@ -21,6 +20,7 @@ use crate::tokio_util;
use crate::tokio_write;
use crate::version;
use deno_core::deno_buf;
use deno_core::Buf;
use deno_core::JSError;
use deno_core::Op;
use flatbuffers::FlatBufferBuilder;

View file

@ -8,7 +8,6 @@
// descriptors". This module implements a global resource table. Ops (AKA
// handlers) look up resources by their integer id here.
use crate::cli::Buf;
use crate::errors;
use crate::errors::bad_resource;
use crate::errors::DenoError;
@ -17,6 +16,8 @@ use crate::http_body::HttpBody;
use crate::isolate_state::WorkerChannels;
use crate::repl::Repl;
use deno_core::Buf;
use futures;
use futures::Future;
use futures::Poll;

View file

@ -1,5 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
use crate::cli::Buf;
use crate::cli::Cli;
use crate::flags::DenoFlags;
use crate::isolate::Isolate;
@ -9,6 +8,7 @@ use crate::js_errors::JSErrorColor;
use crate::permissions::DenoPermissions;
use crate::resources;
use crate::tokio_util;
use deno_core::Buf;
use deno_core::JSError;
use deno_core::StartupData;
use futures::future::lazy;