Explorar o código

Remove extern crate calls

Ruben De Smet %!s(int64=2) %!d(string=hai) anos
pai
achega
dc3c44410b
Modificáronse 1 ficheiros con 1 adicións e 8 borrados
  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);