diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-03-26 12:34:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 12:34:25 -0400 |
commit | f46e39c5c5435696daab9df075482e6e5c83533b (patch) | |
tree | 7699e06977e1149b5d056739f981c0217a91ed5e /test_util/src | |
parent | 6c6f3e87c1a60bc96d006812a670212eeacd1257 (diff) |
remove macro_use (#9884)
Diffstat (limited to 'test_util/src')
-rw-r--r-- | test_util/src/lib.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index b02181170..d156f4ebb 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -1,10 +1,6 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. // Usage: provide a port as argument to run hyper_hello benchmark server // otherwise this starts multiple servers on many ports for test endpoints. - -#[macro_use] -extern crate lazy_static; - use futures::FutureExt; use futures::Stream; use futures::StreamExt; @@ -16,9 +12,8 @@ use hyper::Body; use hyper::Request; use hyper::Response; use hyper::StatusCode; +use lazy_static::lazy_static; use os_pipe::pipe; -#[cfg(unix)] -pub use pty; use regex::Regex; use serde::Serialize; use std::collections::HashMap; @@ -48,6 +43,9 @@ use tokio_rustls::rustls; use tokio_rustls::TlsAcceptor; use tokio_tungstenite::accept_async; +#[cfg(unix)] +pub use pty; + const PORT: u16 = 4545; const TEST_AUTH_TOKEN: &str = "abcdef123456789"; const REDIRECT_PORT: u16 = 4546; |