aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-proto/src/client/circuit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-proto/src/client/circuit.rs')
-rw-r--r--crates/tor-proto/src/client/circuit.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/tor-proto/src/client/circuit.rs b/crates/tor-proto/src/client/circuit.rs
index a0c26933e..3ee72420d 100644
--- a/crates/tor-proto/src/client/circuit.rs
+++ b/crates/tor-proto/src/client/circuit.rs
@@ -1418,7 +1418,7 @@ pub(crate) mod test {
fwd_lasthop: idx == last_hop_num,
rev_lasthop: idx == u8::from(next_msg_from),
peer_id,
- params: params.clone(),
+ params: Box::new(params.clone()),
done: tx,
})
.unwrap();
@@ -1550,6 +1550,8 @@ pub(crate) mod test {
// Do the path accessors report a reasonable outcome?
{
let path = circ.single_path().unwrap();
+ // Without the 'hs-common' feature, clippy would prefer a `map()`.
+ #[allow(clippy::unnecessary_filter_map)]
let path = path
.all_hops()
.filter_map(|hop| match hop {