diff --git a/lib/src/config/config.rs b/lib/src/config/config.rs index fd1544e8..fa06363a 100644 --- a/lib/src/config/config.rs +++ b/lib/src/config/config.rs @@ -344,7 +344,7 @@ impl Config { /// ``` pub fn set_address>(&mut self, address: A) -> Result<()> { let address = address.into(); - if (address.as_ref(), 0u16).to_socket_addrs().is_err() { + if (&*address, 0u16).to_socket_addrs().is_err() { return Err(self.bad_type("address", "string", "a valid hostname or IP")); }