aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-proto/src/client/reactor
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-proto/src/client/reactor')
-rw-r--r--crates/tor-proto/src/client/reactor/circuit.rs2
-rw-r--r--crates/tor-proto/src/client/reactor/control.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/tor-proto/src/client/reactor/circuit.rs b/crates/tor-proto/src/client/reactor/circuit.rs
index 72127db3a..d49c500db 100644
--- a/crates/tor-proto/src/client/reactor/circuit.rs
+++ b/crates/tor-proto/src/client/reactor/circuit.rs
@@ -749,7 +749,7 @@ impl Circuit {
return self.handle_incoming_stream_request(handlers, msg, streamid, hopnum, leg);
} else {
return Err(
- Error::CircProto(format!("Cannot handle {} cells on this circuit", msg.cmd())).into(),
+ Error::CircProto(format!("Cannot handle {} cells on this circuit", msg.cmd())),
);
}
}
diff --git a/crates/tor-proto/src/client/reactor/control.rs b/crates/tor-proto/src/client/reactor/control.rs
index 48a7a75c2..e600bc161 100644
--- a/crates/tor-proto/src/client/reactor/control.rs
+++ b/crates/tor-proto/src/client/reactor/control.rs
@@ -267,7 +267,8 @@ pub(crate) enum CtrlCmd {
fwd_lasthop: bool,
rev_lasthop: bool,
peer_id: path::HopDetail,
- params: CircParameters,
+ // `CircParameters` is large and this command is test-only, so we box it.
+ params: Box<CircParameters>,
done: ReactorResultChannel<()>,
},
/// (tests only) Get the send window and expected tags for a given hop.