Resolve a dead-code warning on nightly.
The `circid` field in `ClientCirc` is now testing-only.
This commit is contained in:
parent
69bb6313fd
commit
b26fbdb24f
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue