Skip to content

Commit 842c875

Browse files
author
Alexandra Sandulescu
committed
Update dependencies
1 parent 0536a0d commit 842c875

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ autoexamples = false
1717

1818
[dependencies]
1919
managed = { version = "0.8", default-features = false, features = ["map"] }
20-
byteorder = { version = "1.0", default-features = false }
21-
log = { version = "0.4.4", default-features = false, optional = true }
22-
libc = { version = "0.2.18", optional = true }
23-
bitflags = { version = "1.0", default-features = false }
20+
byteorder = { version = "1.4", default-features = false }
21+
log = { version = "0.4.14", default-features = false, optional = true }
22+
libc = { version = "0.2.115", optional = true }
23+
bitflags = { version = "1.3", default-features = false }
2424
defmt = { version = "0.3", optional = true }
2525
rand_core = { version = "0.6.3", optional = true, default-features = false }
2626

2727
[dev-dependencies]
28-
env_logger = "0.5"
28+
env_logger = "0.9"
2929
getopts = "0.2"
30-
rand = "0.3"
31-
url = "1.0"
30+
rand = "0.8"
31+
url = "2.0"
3232

3333
[features]
3434
std = ["managed/std", "rand_core/std"]

examples/utils.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub fn setup_logging_with_clock<F>(filter: &str, since_startup: F)
2323
where
2424
F: Fn() -> Instant + Send + Sync + 'static,
2525
{
26-
Builder::new()
26+
Builder::from_default_env()
2727
.format(move |buf, record| {
2828
let elapsed = since_startup();
2929
let timestamp = format!("[{}]", elapsed);
@@ -54,8 +54,7 @@ where
5454
}
5555
})
5656
.filter(None, LevelFilter::Trace)
57-
.parse(filter)
58-
.parse(&env::var("RUST_LOG").unwrap_or_else(|_| "".to_owned()))
57+
.parse_filters(filter)
5958
.init();
6059
}
6160

0 commit comments

Comments
 (0)