Commit 0c981725 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

message: remove impl clone

parent 167555fe
#[repr(u8)] #[derive(Clone)]
pub enum Msg { pub enum Msg {
Hello = 0, Hello = 0,
Error = 1, Error = 1,
...@@ -26,18 +26,3 @@ impl Msg { ...@@ -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,
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment