From 0cb7b030b3d8d0a9f139e7df03ad9a7d56daa0bc Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 11 Oct 2022 09:38:04 -0400 Subject: [PATCH] Fix a warning that I reintroduced. It looks like this got fixed, but my branch for !759 reintroduced it by refactoring. --- crates/tor-linkspec/src/traits.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/tor-linkspec/src/traits.rs b/crates/tor-linkspec/src/traits.rs index c15455066..7b70c7f50 100644 --- a/crates/tor-linkspec/src/traits.rs +++ b/crates/tor-linkspec/src/traits.rs @@ -184,6 +184,7 @@ pub trait CircTarget: ChanTarget { // doing so correctly would require default associated types. fn linkspecs(&self) -> Vec { let mut result: Vec<_> = self.identities().map(|id| id.to_owned().into()).collect(); + #[allow(irrefutable_let_patterns)] if let ChannelMethod::Direct(addrs) = self.chan_method() { result.extend(addrs.into_iter().map(crate::LinkSpec::from)); }