diff options
Diffstat (limited to 'crates/tor-linkspec')
| -rw-r--r-- | crates/tor-linkspec/src/decode.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/tor-linkspec/src/decode.rs b/crates/tor-linkspec/src/decode.rs index 7919ee6d3..0bf658865 100644 --- a/crates/tor-linkspec/src/decode.rs +++ b/crates/tor-linkspec/src/decode.rs @@ -30,6 +30,11 @@ pub enum Strictness { impl OwnedChanTargetBuilder { /// Construct an [`OwnedChanTargetBuilder`] from a list of [`LinkSpec`], /// validating it according to a given level of [`Strictness`]. + /// + // 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)] pub fn from_linkspecs( strictness: Strictness, linkspecs: &[LinkSpec], |
