Skip to content

Commit

Permalink
message: remove impl clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Arikato111 committed Jun 14, 2024
1 parent 167555f commit 0c98172
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/openflow/ofp10/message.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[repr(u8)]
#[derive(Clone)]
pub enum Msg {
Hello = 0,
Error = 1,
Expand Down Expand Up @@ -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,
}
}
}

0 comments on commit 0c98172

Please sign in to comment.