From 312b94c647b369a05fa51c9cd94be92ecb517c88 Mon Sep 17 00:00:00 2001 From: xtexChooser Date: Fri, 9 Sep 2022 12:43:50 +0800 Subject: [PATCH] Add derive Clone for linux::set::AllowedIp --- src/linux/set/allowed_ip.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linux/set/allowed_ip.rs b/src/linux/set/allowed_ip.rs index c8660b5..370c03d 100644 --- a/src/linux/set/allowed_ip.rs +++ b/src/linux/set/allowed_ip.rs @@ -5,7 +5,7 @@ use neli::nlattr::Nlattr; use std::convert::TryFrom; use std::net::IpAddr; -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct AllowedIp<'a> { pub ipaddr: &'a IpAddr, pub cidr_mask: Option,