From 81eb87ef3eef8f62b336dca444706932be6ca5f2 Mon Sep 17 00:00:00 2001 From: Emil Engler Date: Thu, 10 Aug 2023 11:35:52 +0200 Subject: [PATCH] tor-proto: remove unused import This commit removes an unused import within the test module of the `tor_proto::circuit` module. --- crates/tor-proto/src/circuit.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/tor-proto/src/circuit.rs b/crates/tor-proto/src/circuit.rs index 7b647ea2f..ef394ca20 100644 --- a/crates/tor-proto/src/circuit.rs +++ b/crates/tor-proto/src/circuit.rs @@ -1152,7 +1152,6 @@ mod test { use std::time::Duration; use tor_basic_utils::test_rng::testing_rng; use tor_cell::chancell::{msg as chanmsg, AnyChanCell, BoxedCellBody}; - use tor_cell::relaycell::msg::BeginFlags; use tor_cell::relaycell::{msg as relaymsg, AnyRelayCell, StreamId}; use tor_linkspec::OwnedCircTarget; use tor_rtcompat::{Runtime, SleepProvider}; @@ -1921,6 +1920,8 @@ mod test { #[test] #[cfg(feature = "hs-service")] fn allow_stream_requests() { + use tor_cell::relaycell::msg::BeginFlags; + tor_rtcompat::test_with_all_runtimes!(|rt| async move { const TEST_DATA: &[u8] = b"ping"; @@ -1987,6 +1988,7 @@ mod test { #[test] #[cfg(feature = "hs-service")] fn accept_stream_after_reject() { + use tor_cell::relaycell::msg::BeginFlags; use tor_cell::relaycell::msg::EndReason; // TODO HSS: this sometimes triggers an interleaving where the rejected IncomingStream is