diff --git a/src/resolv/lookup/srv.rs b/src/resolv/lookup/srv.rs index f4a79f292..eec9248f1 100644 --- a/src/resolv/lookup/srv.rs +++ b/src/resolv/lookup/srv.rs @@ -144,6 +144,9 @@ impl FoundSrvs { if self.items.is_err() { let one = mem::replace(&mut self.items, Ok(Vec::new())).unwrap_err(); + + // False positive. -- XXX This whole thing should be re-written. + #[allow(clippy::panicking_unwrap)] self.items.as_mut().unwrap().push(one); } match self.items {