diff --git a/g3bench/src/target/keyless/cloudflare/connection/multiplex.rs b/g3bench/src/target/keyless/cloudflare/connection/multiplex.rs index 9c802728d..0f92071e9 100644 --- a/g3bench/src/target/keyless/cloudflare/connection/multiplex.rs +++ b/g3bench/src/target/keyless/cloudflare/connection/multiplex.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io; use std::net::SocketAddr; use std::pin::Pin; diff --git a/g3bench/src/target/mod.rs b/g3bench/src/target/mod.rs index b8e2fd839..5527e0015 100644 --- a/g3bench/src/target/mod.rs +++ b/g3bench/src/target/mod.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; use std::time::Duration; diff --git a/g3keymess/src/control/bridge/mod.rs b/g3keymess/src/control/bridge/mod.rs index 90ec44c7c..7d121862a 100644 --- a/g3keymess/src/control/bridge/mod.rs +++ b/g3keymess/src/control/bridge/mod.rs @@ -14,8 +14,6 @@ * limitations under the License. */ -use std::future::Future; - use anyhow::anyhow; use openssl::pkey::PKey; diff --git a/g3keymess/src/control/local/mod.rs b/g3keymess/src/control/local/mod.rs index e10e78385..fb3217a1f 100644 --- a/g3keymess/src/control/local/mod.rs +++ b/g3keymess/src/control/local/mod.rs @@ -14,8 +14,6 @@ * limitations under the License. */ -use std::future::Future; - use log::debug; use g3_daemon::control::LocalController; diff --git a/g3proxy/src/control/local/mod.rs b/g3proxy/src/control/local/mod.rs index 5703610d1..a38414ff8 100644 --- a/g3proxy/src/control/local/mod.rs +++ b/g3proxy/src/control/local/mod.rs @@ -14,8 +14,6 @@ * limitations under the License. */ -use std::future::Future; - use log::debug; use g3_daemon::control::LocalController; diff --git a/g3proxy/src/control/mod.rs b/g3proxy/src/control/mod.rs index daa078518..bff755352 100644 --- a/g3proxy/src/control/mod.rs +++ b/g3proxy/src/control/mod.rs @@ -14,8 +14,6 @@ * limitations under the License. */ -use std::future::Future; - use tokio::sync::Mutex; mod bridge; diff --git a/g3proxy/src/escape/proxy_float/source/mod.rs b/g3proxy/src/escape/proxy_float/source/mod.rs index 10dd4d068..1f5ecd931 100644 --- a/g3proxy/src/escape/proxy_float/source/mod.rs +++ b/g3proxy/src/escape/proxy_float/source/mod.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::sync::Arc; use anyhow::anyhow; diff --git a/g3proxy/src/escape/route_query/query.rs b/g3proxy/src/escape/route_query/query.rs index f3c08b63d..468436c7c 100644 --- a/g3proxy/src/escape/route_query/query.rs +++ b/g3proxy/src/escape/route_query/query.rs @@ -15,7 +15,6 @@ */ use std::collections::VecDeque; -use std::future::Future; use std::io; use std::pin::Pin; use std::sync::Arc; diff --git a/g3tiles/src/control/local/mod.rs b/g3tiles/src/control/local/mod.rs index de2de40e7..bad9322b9 100644 --- a/g3tiles/src/control/local/mod.rs +++ b/g3tiles/src/control/local/mod.rs @@ -14,8 +14,6 @@ * limitations under the License. */ -use std::future::Future; - use log::debug; use g3_daemon::control::LocalController; diff --git a/g3tiles/src/module/keyless/backend/pool.rs b/g3tiles/src/module/keyless/backend/pool.rs index 2e42ba2e4..c7497a8fa 100644 --- a/g3tiles/src/module/keyless/backend/pool.rs +++ b/g3tiles/src/module/keyless/backend/pool.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::mem; use std::sync::Arc; use std::time::Duration; diff --git a/lib/g3-cert-agent/src/query.rs b/lib/g3-cert-agent/src/query.rs index 6cd0eb392..850137880 100644 --- a/lib/g3-cert-agent/src/query.rs +++ b/lib/g3-cert-agent/src/query.rs @@ -15,7 +15,6 @@ */ use std::collections::VecDeque; -use std::future::Future; use std::io; use std::pin::Pin; use std::sync::Arc; diff --git a/lib/g3-daemon/src/control/local/mod.rs b/lib/g3-daemon/src/control/local/mod.rs index 7522b8d3a..616756d67 100644 --- a/lib/g3-daemon/src/control/local/mod.rs +++ b/lib/g3-daemon/src/control/local/mod.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::sync::Mutex; use anyhow::anyhow; diff --git a/lib/g3-daemon/src/control/quit.rs b/lib/g3-daemon/src/control/quit.rs index abed38800..efc8162a4 100644 --- a/lib/g3-daemon/src/control/quit.rs +++ b/lib/g3-daemon/src/control/quit.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::sync::Mutex; use std::time::Duration; diff --git a/lib/g3-daemon/src/signal/mod.rs b/lib/g3-daemon/src/signal/mod.rs index 9acd9d547..54126941a 100644 --- a/lib/g3-daemon/src/signal/mod.rs +++ b/lib/g3-daemon/src/signal/mod.rs @@ -14,8 +14,6 @@ * limitations under the License. */ -use std::future::Future; - #[cfg(unix)] mod unix; #[cfg(unix)] diff --git a/lib/g3-h2/src/body/encoder.rs b/lib/g3-h2/src/body/encoder.rs index bbb206bd4..11e27f3cb 100644 --- a/lib/g3-h2/src/body/encoder.rs +++ b/lib/g3-h2/src/body/encoder.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-h2/src/body/from_chunked_transfer.rs b/lib/g3-h2/src/body/from_chunked_transfer.rs index 839b1e80d..79a53401b 100644 --- a/lib/g3-h2/src/body/from_chunked_transfer.rs +++ b/lib/g3-h2/src/body/from_chunked_transfer.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-h2/src/body/to_chunked_transfer.rs b/lib/g3-h2/src/body/to_chunked_transfer.rs index 88d4f7976..f2f8e35ac 100644 --- a/lib/g3-h2/src/body/to_chunked_transfer.rs +++ b/lib/g3-h2/src/body/to_chunked_transfer.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io::{self, Write}; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-h2/src/body/transfer.rs b/lib/g3-h2/src/body/transfer.rs index 8cecd696e..ff1166872 100644 --- a/lib/g3-h2/src/body/transfer.rs +++ b/lib/g3-h2/src/body/transfer.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-http/src/body/body_to_chunked.rs b/lib/g3-http/src/body/body_to_chunked.rs index 983b024be..4bdb28ee2 100644 --- a/lib/g3-http/src/body/body_to_chunked.rs +++ b/lib/g3-http/src/body/body_to_chunked.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-http/src/body/preview.rs b/lib/g3-http/src/body/preview.rs index cd0dd50e8..3f5c633ae 100644 --- a/lib/g3-http/src/body/preview.rs +++ b/lib/g3-http/src/body/preview.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io::{self, Write}; use std::pin::Pin; use std::task::{Context, Poll}; diff --git a/lib/g3-http/src/body/stream_to_chunked.rs b/lib/g3-http/src/body/stream_to_chunked.rs index 776213301..075596a7e 100644 --- a/lib/g3-http/src/body/stream_to_chunked.rs +++ b/lib/g3-http/src/body/stream_to_chunked.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io::Write; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-http/src/body/trailer_reader.rs b/lib/g3-http/src/body/trailer_reader.rs index 2789334dc..9c26d8e7c 100644 --- a/lib/g3-http/src/body/trailer_reader.rs +++ b/lib/g3-http/src/body/trailer_reader.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io; use std::pin::Pin; use std::str::FromStr; diff --git a/lib/g3-io-ext/src/cache/runtime.rs b/lib/g3-io-ext/src/cache/runtime.rs index d6ec8a2d4..d92a48c65 100644 --- a/lib/g3-io-ext/src/cache/runtime.rs +++ b/lib/g3-io-ext/src/cache/runtime.rs @@ -15,7 +15,6 @@ */ use std::collections::hash_map; -use std::future::Future; use std::hash::Hash; use std::io; use std::pin::Pin; diff --git a/lib/g3-io-ext/src/io/buf/copy.rs b/lib/g3-io-ext/src/io/buf/copy.rs index 9bfe905f5..89f3262a5 100644 --- a/lib/g3-io-ext/src/io/buf/copy.rs +++ b/lib/g3-io-ext/src/io/buf/copy.rs @@ -14,7 +14,7 @@ * limitations under the License. */ -use std::future::{poll_fn, Future}; +use std::future::poll_fn; use std::io; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-io-ext/src/io/ext/fill_wait_data.rs b/lib/g3-io-ext/src/io/ext/fill_wait_data.rs index 6e67a4e6f..7f2775954 100644 --- a/lib/g3-io-ext/src/io/ext/fill_wait_data.rs +++ b/lib/g3-io-ext/src/io/ext/fill_wait_data.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-io-ext/src/io/ext/limited_read_buf_until.rs b/lib/g3-io-ext/src/io/ext/limited_read_buf_until.rs index 4037339ad..9c15a0869 100644 --- a/lib/g3-io-ext/src/io/ext/limited_read_buf_until.rs +++ b/lib/g3-io-ext/src/io/ext/limited_read_buf_until.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io; use std::mem; use std::pin::Pin; diff --git a/lib/g3-io-ext/src/io/ext/limited_read_until.rs b/lib/g3-io-ext/src/io/ext/limited_read_until.rs index 302bdfe40..e3487a073 100644 --- a/lib/g3-io-ext/src/io/ext/limited_read_until.rs +++ b/lib/g3-io-ext/src/io/ext/limited_read_until.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io; use std::mem; use std::pin::Pin; diff --git a/lib/g3-io-ext/src/io/ext/limited_skip_until.rs b/lib/g3-io-ext/src/io/ext/limited_skip_until.rs index 6881a1298..9cbbba219 100644 --- a/lib/g3-io-ext/src/io/ext/limited_skip_until.rs +++ b/lib/g3-io-ext/src/io/ext/limited_skip_until.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io; use std::mem; use std::pin::Pin; diff --git a/lib/g3-io-ext/src/io/ext/read_all_now.rs b/lib/g3-io-ext/src/io/ext/read_all_now.rs index be43ab37f..07febcf19 100644 --- a/lib/g3-io-ext/src/io/ext/read_all_now.rs +++ b/lib/g3-io-ext/src/io/ext/read_all_now.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::pin::Pin; use std::task::{Context, Poll}; diff --git a/lib/g3-io-ext/src/io/ext/write_all_flush.rs b/lib/g3-io-ext/src/io/ext/write_all_flush.rs index 4079f3f7b..db306cd86 100644 --- a/lib/g3-io-ext/src/io/ext/write_all_flush.rs +++ b/lib/g3-io-ext/src/io/ext/write_all_flush.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io; use std::mem; use std::pin::Pin; diff --git a/lib/g3-io-ext/src/io/ext/write_all_vectored.rs b/lib/g3-io-ext/src/io/ext/write_all_vectored.rs index 22782d853..2307da55a 100644 --- a/lib/g3-io-ext/src/io/ext/write_all_vectored.rs +++ b/lib/g3-io-ext/src/io/ext/write_all_vectored.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io::{self, IoSlice}; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-io-ext/src/io/limited_copy.rs b/lib/g3-io-ext/src/io/limited_copy.rs index 20e20013d..8a896b32a 100644 --- a/lib/g3-io-ext/src/io/limited_copy.rs +++ b/lib/g3-io-ext/src/io/limited_copy.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-io-ext/src/quic/limited_socket.rs b/lib/g3-io-ext/src/quic/limited_socket.rs index ae5d9864e..e4d0d16ff 100644 --- a/lib/g3-io-ext/src/quic/limited_socket.rs +++ b/lib/g3-io-ext/src/quic/limited_socket.rs @@ -16,7 +16,6 @@ use std::cell::UnsafeCell; use std::fmt; -use std::future::Future; use std::io::{self, IoSliceMut}; use std::pin::Pin; use std::sync::{Arc, Mutex}; diff --git a/lib/g3-io-ext/src/quic/udp_poller.rs b/lib/g3-io-ext/src/quic/udp_poller.rs index cca3720be..7cec6dce9 100644 --- a/lib/g3-io-ext/src/quic/udp_poller.rs +++ b/lib/g3-io-ext/src/quic/udp_poller.rs @@ -15,7 +15,6 @@ */ use std::fmt; -use std::future::Future; use std::io; use std::pin::Pin; use std::task::{Context, Poll}; diff --git a/lib/g3-io-ext/src/udp/copy/mod.rs b/lib/g3-io-ext/src/udp/copy/mod.rs index 390de1d40..7bc5c7d36 100644 --- a/lib/g3-io-ext/src/udp/copy/mod.rs +++ b/lib/g3-io-ext/src/udp/copy/mod.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io::IoSliceMut; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-io-ext/src/udp/relay/mod.rs b/lib/g3-io-ext/src/udp/relay/mod.rs index d6689134f..a47ba46ec 100644 --- a/lib/g3-io-ext/src/udp/relay/mod.rs +++ b/lib/g3-io-ext/src/udp/relay/mod.rs @@ -14,7 +14,6 @@ * limitations under the License. */ -use std::future::Future; use std::io::IoSliceMut; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-ip-locate/src/cache.rs b/lib/g3-ip-locate/src/cache.rs index 71b280820..3ad8c8508 100644 --- a/lib/g3-ip-locate/src/cache.rs +++ b/lib/g3-ip-locate/src/cache.rs @@ -15,7 +15,6 @@ */ use std::collections::hash_map; -use std::future::Future; use std::io; use std::net::IpAddr; use std::pin::Pin; diff --git a/lib/g3-ip-locate/src/query.rs b/lib/g3-ip-locate/src/query.rs index 1ace3de14..9cc8fd331 100644 --- a/lib/g3-ip-locate/src/query.rs +++ b/lib/g3-ip-locate/src/query.rs @@ -15,7 +15,6 @@ */ use std::collections::VecDeque; -use std::future::Future; use std::io; use std::net::IpAddr; use std::pin::Pin; diff --git a/lib/g3-openssl/src/async_job/task.rs b/lib/g3-openssl/src/async_job/task.rs index 3bc01bffe..ae6505446 100644 --- a/lib/g3-openssl/src/async_job/task.rs +++ b/lib/g3-openssl/src/async_job/task.rs @@ -15,7 +15,6 @@ */ use std::cell::UnsafeCell; -use std::future::Future; use std::io; use std::os::fd::RawFd; use std::pin::Pin; diff --git a/lib/g3-openssl/src/ssl/accept.rs b/lib/g3-openssl/src/ssl/accept.rs index 76b571675..146ce6c57 100644 --- a/lib/g3-openssl/src/ssl/accept.rs +++ b/lib/g3-openssl/src/ssl/accept.rs @@ -14,7 +14,7 @@ * limitations under the License. */ -use std::future::{poll_fn, Future}; +use std::future::poll_fn; use std::io; use std::pin::Pin; use std::task::{Context, Poll}; diff --git a/lib/g3-openssl/src/ssl/async_accept.rs b/lib/g3-openssl/src/ssl/async_accept.rs index bf2cb0f64..032dd2fe3 100644 --- a/lib/g3-openssl/src/ssl/async_accept.rs +++ b/lib/g3-openssl/src/ssl/async_accept.rs @@ -14,7 +14,7 @@ * limitations under the License. */ -use std::future::{poll_fn, Future}; +use std::future::poll_fn; use std::io; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-resolver/src/handle.rs b/lib/g3-resolver/src/handle.rs index 94aedd004..d58676df2 100644 --- a/lib/g3-resolver/src/handle.rs +++ b/lib/g3-resolver/src/handle.rs @@ -14,7 +14,7 @@ * limitations under the License. */ -use std::future::{poll_fn, Future}; +use std::future::poll_fn; use std::pin::Pin; use std::sync::Arc; use std::task::{Context, Poll}; diff --git a/lib/g3-resolver/src/runtime.rs b/lib/g3-resolver/src/runtime.rs index 00a2d9a10..7e5e6709e 100644 --- a/lib/g3-resolver/src/runtime.rs +++ b/lib/g3-resolver/src/runtime.rs @@ -15,7 +15,6 @@ */ use std::collections::hash_map; -use std::future::Future; use std::pin::Pin; use std::sync::Arc; use std::task::{Context, Poll}; diff --git a/lib/g3-smtp-proto/src/io/text_encoder.rs b/lib/g3-smtp-proto/src/io/text_encoder.rs index 2c2eb28d1..b2e142ffe 100644 --- a/lib/g3-smtp-proto/src/io/text_encoder.rs +++ b/lib/g3-smtp-proto/src/io/text_encoder.rs @@ -14,7 +14,7 @@ * limitations under the License. */ -use std::future::{poll_fn, Future}; +use std::future::poll_fn; use std::io; use std::pin::Pin; use std::task::{ready, Context, Poll}; diff --git a/lib/g3-socks/src/v5/quic.rs b/lib/g3-socks/src/v5/quic.rs index 72cf3fd06..353738a66 100644 --- a/lib/g3-socks/src/v5/quic.rs +++ b/lib/g3-socks/src/v5/quic.rs @@ -15,7 +15,6 @@ */ use std::cell::UnsafeCell; -use std::future::Future; use std::io::{self, IoSlice, IoSliceMut}; use std::net::{SocketAddr, UdpSocket}; use std::pin::Pin;