Fix a warning that I reintroduced.
It looks like this got fixed, but my branch for !759 reintroduced it by refactoring.
This commit is contained in:
parent
34c689cbe8
commit
0cb7b030b3
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue