Skip to content

Commit 2f86c07

Browse files
committed
Remove redundant conversion
1 parent 2743c29 commit 2f86c07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/socket/addr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ impl ToSocketAddrs for SockaddrIn6 {
11151115
type Iter = vec::IntoIter<SocketAddr>;
11161116

11171117
fn to_socket_addrs(&self) -> std::io::Result<Self::Iter> {
1118-
let sa6 = SocketAddrV6::new(self.ip().into(),
1118+
let sa6 = SocketAddrV6::new(self.ip(),
11191119
self.port(),
11201120
self.flowinfo(),
11211121
self.scope_id())

0 commit comments

Comments
 (0)