summaryrefslogtreecommitdiff
path: root/crates/tor-circmgr/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-circmgr/src')
-rw-r--r--crates/tor-circmgr/src/impls.rs4
-rw-r--r--crates/tor-circmgr/src/mgr.rs1
2 files changed, 5 insertions, 0 deletions
diff --git a/crates/tor-circmgr/src/impls.rs b/crates/tor-circmgr/src/impls.rs
index b7c0fbc1c..01a046e8f 100644
--- a/crates/tor-circmgr/src/impls.rs
+++ b/crates/tor-circmgr/src/impls.rs
@@ -32,6 +32,10 @@ impl mgr::AbstractTunnel for tor_proto::ClientTunnel {
!self.is_closing()
}
+ // TODO: replace Itertools::exactly_one() with a stdlib equivalent when there is one.
+ //
+ // See issue #48919 <https://github.com/rust-lang/rust/issues/48919>
+ #[allow(unstable_name_collisions)]
fn single_path(&self) -> tor_proto::Result<Arc<Path>> {
use itertools::Itertools as _;
diff --git a/crates/tor-circmgr/src/mgr.rs b/crates/tor-circmgr/src/mgr.rs
index ff27c83a0..4c18b3248 100644
--- a/crates/tor-circmgr/src/mgr.rs
+++ b/crates/tor-circmgr/src/mgr.rs
@@ -65,6 +65,7 @@ pub(crate) enum TunnelProvenance {
Preexisting,
}
+/// An error returned when we cannot apply circuit restriction.
#[derive(Clone, Debug, thiserror::Error)]
#[non_exhaustive]
pub enum RestrictionFailed {