Browse Source

cargo update

Sam Clements 10 năm trước cách đây
mục cha
commit
ffbec480ab
2 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 3 3
      Cargo.toml
  2. 1 1
      examples/logging_example.rs

+ 3 - 3
Cargo.toml

@@ -1,11 +1,11 @@
 [package]
 name = "simple_logger"
-version = "0.3.0"
+version = "0.3.1"
 license = "MIT"
 authors = ["Sam Clements <sam@borntyping.co.uk>"]
 description = "A logger that prints all messages with a readable output format"
 repository = "https://github.com/borntyping/rust-simple_logger"
 
 [dependencies]
-log = "^0.3.0"
-time = "^0.1.21"
+log = "^0.3.1"
+time = "^0.1.22"

+ 1 - 1
examples/logging_example.rs

@@ -3,7 +3,7 @@ extern crate log;
 extern crate simple_logger;
 
 fn main() {
-    simple_logger::init();
+    simple_logger::init().unwrap();
 
     warn!("This is an example message.");
 }