Skip to content

Commit be4ce09

Browse files
Upgrade log4rs: 0.8 → 1.1
1 parent f31c6cd commit be4ce09

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ websocket = { version = "0.26", default-features = false, features = ["async", "
3434
xsalsa20poly1305 = "0.8"
3535

3636
[dev-dependencies]
37+
anyhow = "1"
3738
clap = { version = "3", features = ["std", "derive"], default-features = false }
3839
cursive = "0.20"
39-
log4rs = "0.8"
40+
log4rs = "1.1"
4041

4142
[features]
4243
default = []

tests/integration.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
66
use std::borrow::Cow;
77
use std::collections::HashMap;
8-
use std::error::Error as StdError;
98
use std::fs::File;
109
use std::io::Read;
1110
use std::path::Path;
@@ -46,7 +45,7 @@ impl CapturedConsoleAppender {
4645
}
4746

4847
impl Append for CapturedConsoleAppender {
49-
fn append(&self, record: &Record) -> Result<(), Box<dyn StdError + Sync + Send>> {
48+
fn append(&self, record: &Record) -> anyhow::Result<()> {
5049
let mut writer = SimpleWriter(Vec::<u8>::new());
5150
self.encoder.encode(&mut writer, record)?;
5251
let line = str::from_utf8(&writer.0).unwrap();

0 commit comments

Comments
 (0)