diff --git a/src/bsd.rs b/src/bsd.rs index d12fcfb..42445e8 100644 --- a/src/bsd.rs +++ b/src/bsd.rs @@ -187,7 +187,7 @@ fn sockaddr_len(af: AddressFamily) -> Result { _ => { return Err(Error::new( ErrorKind::InvalidInput, - "Unsupported address family {af:?}", + format!("Unsupported address family {af:?}"), )) } };