Selaa lähdekoodia

Fix an unused import warning.

whitequark 7 vuotta sitten
vanhempi
commit
01021e46ce
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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};