Browse Source

Fix missing `#[test]`

Dario Nieuwenhuis 2 năm trước cách đây
mục cha
commit
5451ecc2d4
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/wire/ip.rs

+ 2 - 0
src/wire/ip.rs

@@ -958,6 +958,7 @@ pub(crate) mod test {
         test_eq(32, Ipv4Address::new(255, 255, 255, 255));
     }
 
+    #[test]
     #[cfg(feature = "proto-ipv4")]
     fn to_prefix_len_ipv4_error() {
         assert_eq!(
@@ -982,6 +983,7 @@ pub(crate) mod test {
         );
     }
 
+    #[test]
     #[cfg(feature = "proto-ipv6")]
     fn to_prefix_len_ipv6_error() {
         assert_eq!(