Skip to content

Commit c54d369

Browse files
committed
Derive Copy and Clone for InterfaceIndexOrAddress (#570)
1 parent 33291e2 commit c54d369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socket.rs

Lines changed: 1 addition & 1 deletion
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)