Преглед на файлове

CR fixes deux

Closes: #218
Approved by: whitequark
Herman J. Radtke III преди 6 години
родител
ревизия
9c1900ff3f
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/wire/ipv6routing.rs

+ 3 - 3
src/wire/ipv6routing.rs

@@ -1,8 +1,8 @@
 use core::fmt;
 use {Error, Result};
 
-pub use super::IpProtocol as Protocol;
-pub use super::Ipv6Address as Address;
+use super::IpProtocol as Protocol;
+use super::Ipv6Address as Address;
 
 enum_with_unknown! {
     /// IPv6 Extension Routing Header Routing Type
@@ -315,7 +315,7 @@ impl<T: AsRef<[u8]> + AsMut<[u8]>> Header<T> {
                 data[7] = 0;
             }
 
-            _ => {}
+            _ => panic!("Unrecognized routing type when clearing reserved fields.")
         }
     }
 }