Skip to content

Commit 763862a

Browse files
authored
Merge pull request #661 from async-rs/fix-ci
remove usage of deprecated Error method to fix CI
2 parents e2bb79c + dfb0c81 commit 763862a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/io/utils.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use crate::utils::Context;
22

3+
use std::{error::Error as StdError, fmt, io};
4+
35
/// Wrap `std::io::Error` with additional message
46
///
57
/// Keeps the original error kind and stores the original I/O error as `source`.
@@ -9,8 +11,6 @@ impl<T> Context for Result<T, std::io::Error> {
911
}
1012
}
1113

12-
use std::{error::Error as StdError, fmt, io};
13-
1414
#[derive(Debug)]
1515
pub(crate) struct VerboseError {
1616
source: io::Error,
@@ -36,10 +36,6 @@ impl fmt::Display for VerboseError {
3636
}
3737

3838
impl StdError for VerboseError {
39-
fn description(&self) -> &str {
40-
self.source.description()
41-
}
42-
4339
fn source(&self) -> Option<&(dyn StdError + 'static)> {
4440
Some(&self.source)
4541
}

0 commit comments

Comments
 (0)