浏览代码

Fix an unused import warning.

whitequark 7 年之前
父节点
当前提交
01021e46ce
共有 1 个文件被更改,包括 2 次插入1 次删除
  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};