소스 검색

Remove extern crate calls

Ruben De Smet 2 년 전
부모
커밋
dc3c44410b
1개의 변경된 파일1개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 8
      examples/dns.rs

+ 1 - 8
examples/dns.rs

@@ -1,10 +1,3 @@
-#[macro_use]
-extern crate log;
-extern crate byteorder;
-extern crate env_logger;
-extern crate getopts;
-extern crate smoltcp;
-
 mod utils;
 
 use smoltcp::iface::{Config, Interface, SocketSet};
@@ -75,7 +68,7 @@ fn main() {
 
     loop {
         let timestamp = Instant::now();
-        debug!("timestamp {:?}", timestamp);
+        log::debug!("timestamp {:?}", timestamp);
 
         iface.poll(timestamp, &mut device, &mut sockets);