Explorar el Código

Fix an unused import warning.

whitequark hace 7 años
padre
commit
01021e46ce
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/phy/pcap_writer.rs

+ 2 - 1
src/phy/pcap_writer.rs

@@ -1,4 +1,5 @@
-use core::cell::RefCell;
+#[cfg(feature = "std")]
+use std::cell::RefCell;
 #[cfg(feature = "std")]
 use std::io::Write;
 use byteorder::{ByteOrder, NativeEndian};