Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit d122b6a

Browse files
committed
clippy
1 parent 03f0fa9 commit d122b6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

net-utils/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ pub fn bind_common_in_range(
267267
}
268268
}
269269

270-
return Err(io::Error::new(
270+
Err(io::Error::new(
271271
io::ErrorKind::Other,
272272
format!("No available TCP/UDP ports in {:?}", range),
273-
));
273+
))
274274
}
275275

276276
pub fn bind_in_range(ip_addr: IpAddr, range: PortRange) -> io::Result<(u16, UdpSocket)> {
@@ -285,10 +285,10 @@ pub fn bind_in_range(ip_addr: IpAddr, range: PortRange) -> io::Result<(u16, UdpS
285285
}
286286
}
287287

288-
return Err(io::Error::new(
288+
Err(io::Error::new(
289289
io::ErrorKind::Other,
290290
format!("No available UDP ports in {:?}", range),
291-
));
291+
))
292292
}
293293

294294
// binds many sockets to the same port in a range

0 commit comments

Comments
 (0)