Эх сурвалжийг харах

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

whitequark 7 жил өмнө
parent
commit
b3e355437f
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/wire/ip.rs

+ 1 - 1
src/wire/ip.rs

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