From 0c98172552fa6e17c4a73d6ca4c1467387c0fb3e Mon Sep 17 00:00:00 2001 From: Nawasan Wisitsingkhon Date: Sat, 15 Jun 2024 04:44:00 +0700 Subject: [PATCH] message: remove impl clone --- src/openflow/ofp10/message.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/openflow/ofp10/message.rs b/src/openflow/ofp10/message.rs index 2115184..485a026 100644 --- a/src/openflow/ofp10/message.rs +++ b/src/openflow/ofp10/message.rs @@ -1,4 +1,4 @@ -#[repr(u8)] +#[derive(Clone)] pub enum Msg { Hello = 0, Error = 1, @@ -26,18 +26,3 @@ impl Msg { } } } - -impl Clone for Msg { - fn clone(&self) -> Self { - match self { - Self::Hello => Self::Hello, - Self::Error => Self::Error, - Self::FeaturesReq => Self::FeaturesReq, - Self::PacketIn => Self::PacketIn, - Self::PacketOut => Self::PacketOut, - Self::FlowMod => Self::FlowMod, - Self::NotFound => Self::NotFound, - } - } -} -