forked from mirror/async-std
Merge pull request #661 from async-rs/fix-ci
remove usage of deprecated Error method to fix CI
This commit is contained in:
commit
763862acc7
1 changed files with 2 additions and 6 deletions
|
@ -1,5 +1,7 @@
|
||||||
use crate::utils::Context;
|
use crate::utils::Context;
|
||||||
|
|
||||||
|
use std::{error::Error as StdError, fmt, io};
|
||||||
|
|
||||||
/// Wrap `std::io::Error` with additional message
|
/// Wrap `std::io::Error` with additional message
|
||||||
///
|
///
|
||||||
/// Keeps the original error kind and stores the original I/O error as `source`.
|
/// 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> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
use std::{error::Error as StdError, fmt, io};
|
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct VerboseError {
|
pub(crate) struct VerboseError {
|
||||||
source: io::Error,
|
source: io::Error,
|
||||||
|
@ -36,10 +36,6 @@ impl fmt::Display for VerboseError {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl StdError for VerboseError {
|
impl StdError for VerboseError {
|
||||||
fn description(&self) -> &str {
|
|
||||||
self.source.description()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn source(&self) -> Option<&(dyn StdError + 'static)> {
|
fn source(&self) -> Option<&(dyn StdError + 'static)> {
|
||||||
Some(&self.source)
|
Some(&self.source)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue