Преглед на файлове

Remove extern crate calls

Ruben De Smet преди 1 година
родител
ревизия
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);