Resolve a dead-code warning on nightly.

The `circid` field in `ClientCirc` is now testing-only.
This commit is contained in:
Nick Mathewson 2021-11-13 11:14:11 -05:00
parent 69bb6313fd
commit b26fbdb24f
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,7 @@ pub struct ClientCirc {
/// Channel to send control messages to the reactor. /// Channel to send control messages to the reactor.
control: mpsc::UnboundedSender<CtrlMsg>, control: mpsc::UnboundedSender<CtrlMsg>,
/// For testing purposes: the CircId, for use in peek_circid(). /// For testing purposes: the CircId, for use in peek_circid().
#[cfg(test)]
circid: CircId, circid: CircId,
} }
@ -425,6 +426,7 @@ impl PendingClientCirc {
hops: num_hops, hops: num_hops,
unique_id, unique_id,
control: control_tx, control: control_tx,
#[cfg(test)]
circid: id, circid: id,
}; };