소스 검색

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};