Skip to content

Commit

Permalink
Merge pull request #54 from jxs/fix-rustsec
Browse files Browse the repository at this point in the history
update dependencies
  • Loading branch information
sile committed Aug 18, 2023
2 parents edcb74a + 0a037a0 commit 153e594
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ default = ["libflate", "slog-kvfilter"]
json = ["slog-json"]

[dependencies]
chrono="0.4"
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
libflate = {version = "1", optional = true}
serde = {version = "1", features = ["derive"]}
slog = "2"
Expand All @@ -32,7 +32,7 @@ trackable = "1"
regex="1"

[dev-dependencies]
clap = "2"
clap = "4"
log = "0.4"
serdeconv = "0.4"
tempfile = "3"
Expand Down
8 changes: 4 additions & 4 deletions examples/hello.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ extern crate slog;
#[macro_use]
extern crate trackable;

use clap::{App, Arg};
use clap::{Arg, Command};
use sloggers::{Build, Config, LoggerConfig};

fn main() {
let matches = App::new("hello")
.arg(Arg::with_name("CONFIG_FILE").index(1).required(true))
let matches = Command::new("hello")
.arg(Arg::new("CONFIG_FILE").index(1).required(true))
.get_matches();
let config_file = matches.value_of("CONFIG_FILE").unwrap();
let config_file = matches.get_one::<String>("CONFIG_FILE").unwrap();

let config: LoggerConfig = track_try_unwrap!(serdeconv::from_toml_file(config_file));
let builder = track_try_unwrap!(config.try_to_builder());
Expand Down
2 changes: 1 addition & 1 deletion src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ mod tests {
&path_template,
"%Y%m%d_%H%M",
TimeZone::Utc, // Local is difficult to test, omitting :(
Utc.from_utc_datetime(&NaiveDateTime::from_timestamp(1537265991, 0)),
Utc.from_utc_datetime(&NaiveDateTime::from_timestamp_opt(1537265991, 0).unwrap()),
);
let expected = dir.path().join("foo_20180918_1019.log");
assert_eq!(expected, actual);
Expand Down

0 comments on commit 153e594

Please sign in to comment.