Browse Source

Add missing #[derive]s on wire::IpVersion.

whitequark 7 years ago
parent
commit
b3e355437f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/wire/ip.rs

+ 1 - 1
src/wire/ip.rs

@@ -4,7 +4,7 @@ use Error;
 use super::{Ipv4Address, Ipv4Packet, Ipv4Repr};
 use super::{Ipv4Address, Ipv4Packet, Ipv4Repr};
 
 
 /// Internet protocol version.
 /// Internet protocol version.
-#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy)]
 pub enum Version {
 pub enum Version {
     Ipv4,
     Ipv4,
     #[doc(hidden)]
     #[doc(hidden)]