mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
Remove unnecessary extern statements
This commit is contained in:
parent
0cb64cef76
commit
c3ef358c01
6 changed files with 4 additions and 28 deletions
|
@ -8,9 +8,9 @@
|
|||
//! only need to be able to start and cancel a single timer (or Delay, as Tokio
|
||||
//! calls it) for an entire Isolate. This is what is implemented here.
|
||||
|
||||
use crate::futures::TryFutureExt;
|
||||
use futures::channel::oneshot;
|
||||
use futures::future::FutureExt;
|
||||
use futures::TryFutureExt;
|
||||
use std::future::Future;
|
||||
use std::time::Instant;
|
||||
|
||||
|
|
14
cli/main.rs
14
cli/main.rs
|
@ -1,25 +1,11 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
extern crate dissimilar;
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
extern crate futures;
|
||||
#[macro_use]
|
||||
extern crate serde_json;
|
||||
extern crate clap;
|
||||
extern crate deno_core;
|
||||
extern crate encoding_rs;
|
||||
extern crate indexmap;
|
||||
#[cfg(unix)]
|
||||
extern crate nix;
|
||||
extern crate rand;
|
||||
extern crate regex;
|
||||
extern crate reqwest;
|
||||
extern crate serde;
|
||||
extern crate tokio;
|
||||
extern crate url;
|
||||
|
||||
mod ast;
|
||||
mod checksum;
|
||||
|
|
|
@ -30,9 +30,6 @@ use std::os::unix::io::FromRawFd;
|
|||
#[cfg(windows)]
|
||||
use std::os::windows::io::FromRawHandle;
|
||||
|
||||
#[cfg(windows)]
|
||||
extern crate winapi;
|
||||
|
||||
lazy_static! {
|
||||
/// Due to portability issues on Windows handle to stdout is created from raw
|
||||
/// file descriptor. The caveat of that approach is fact that when this
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use crate::futures::FutureExt;
|
||||
use crate::tsc::runtime_bundle;
|
||||
use crate::tsc::runtime_compile;
|
||||
use crate::tsc::runtime_transpile;
|
||||
use deno_core::error::AnyError;
|
||||
use deno_core::BufVec;
|
||||
use deno_core::OpState;
|
||||
use futures::FutureExt;
|
||||
use serde::Deserialize;
|
||||
use serde_json::Value;
|
||||
use std::cell::RefCell;
|
||||
|
|
|
@ -1,14 +1,9 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
#[cfg(unix)]
|
||||
extern crate nix;
|
||||
extern crate tempfile;
|
||||
|
||||
use test_util as util;
|
||||
|
||||
use futures::prelude::*;
|
||||
use std::io::{BufRead, Write};
|
||||
use std::process::Command;
|
||||
use tempfile::TempDir;
|
||||
use test_util as util;
|
||||
|
||||
#[test]
|
||||
fn std_tests() {
|
||||
|
|
|
@ -6,13 +6,11 @@
|
|||
//! the future it can be easily extended to provide
|
||||
//! the same functions as ops available in JS runtime.
|
||||
|
||||
extern crate semver_parser;
|
||||
use crate::futures::FutureExt;
|
||||
use crate::http_util::fetch_once;
|
||||
use crate::http_util::FetchOnceResult;
|
||||
use crate::AnyError;
|
||||
use deno_core::error::custom_error;
|
||||
|
||||
use futures::FutureExt;
|
||||
use regex::Regex;
|
||||
use reqwest::{redirect::Policy, Client};
|
||||
use semver_parser::version::parse as semver_parse;
|
||||
|
|
Loading…
Reference in a new issue