Skip to content

Commit f906032

Browse files
author
Artyom Sakharilenko
committed
err.to_string() instead of deprecated err.description().
1 parent c0c101f commit f906032

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ use slog::{BorrowedKV, Level, Record, RecordStatic, SingleKV, KV};
6262
use slog::{Key, OwnedKVList, Serializer};
6363

6464
use slog::Drain;
65-
use std::error::Error;
6665
use std::fmt;
6766
use std::sync;
6867
use std::{io, thread};
@@ -222,7 +221,7 @@ impl<T> From<std::sync::PoisonError<T>> for AsyncError {
222221
fn from(err: std::sync::PoisonError<T>) -> AsyncError {
223222
AsyncError::Fatal(Box::new(io::Error::new(
224223
io::ErrorKind::BrokenPipe,
225-
err.description(),
224+
err.to_string(),
226225
)))
227226
}
228227
}

0 commit comments

Comments
 (0)