Skip to content

Commit 36dec54

Browse files
authored
Derive Copy and Clone for InterfaceIndexOrAddress
Closes #570
1 parent 33291e2 commit 36dec54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socket.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ fn set_common_flags(socket: Socket) -> io::Result<Socket> {
809809
target_os = "redox",
810810
target_os = "solaris",
811811
)))]
812-
#[derive(Debug)]
812+
#[derive(Debug, Copy, Clone)]
813813
pub enum InterfaceIndexOrAddress {
814814
/// An interface index.
815815
Index(u32),

0 commit comments

Comments
 (0)