Merge branch 'fix_warning_again' into 'main'

Fix a warning that I reintroduced.

See merge request tpo/core/arti!765
This commit is contained in:
Nick Mathewson 2022-10-11 14:05:08 +00:00
commit d6554e816f
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ pub trait CircTarget: ChanTarget {
// doing so correctly would require default associated types.
fn linkspecs(&self) -> Vec<crate::LinkSpec> {
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));
}