Browse Source

Merge #751

751: Small clean-ups: bump env_logger and clean up some `extern crate`s r=Dirbaio a=rubdos



Co-authored-by: Ruben De Smet <ruben.de.smet@rubdos.be>
bors[bot] 1 năm trước cách đây
mục cha
commit
bc12398193
2 tập tin đã thay đổi với 2 bổ sung9 xóa
  1. 1 1
      Cargo.toml
  2. 1 8
      examples/dns.rs

+ 1 - 1
Cargo.toml

@@ -27,7 +27,7 @@ cfg-if = "1.0.0"
 heapless = "0.7.8"
 
 [dev-dependencies]
-env_logger = "0.9"
+env_logger = "0.10"
 getopts = "0.2"
 rand = "0.8"
 url = "2.0"

+ 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);