We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e2bb79c + dfb0c81 commit 763862aCopy full SHA for 763862a
src/io/utils.rs
@@ -1,5 +1,7 @@
1
use crate::utils::Context;
2
3
+use std::{error::Error as StdError, fmt, io};
4
+
5
/// Wrap `std::io::Error` with additional message
6
///
7
/// 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> {
9
11
}
10
12
13
-use std::{error::Error as StdError, fmt, io};
-
14
#[derive(Debug)]
15
pub(crate) struct VerboseError {
16
source: io::Error,
@@ -36,10 +36,6 @@ impl fmt::Display for VerboseError {
36
37
38
impl StdError for VerboseError {
39
- fn description(&self) -> &str {
40
- self.source.description()
41
- }
42
43
fn source(&self) -> Option<&(dyn StdError + 'static)> {
44
Some(&self.source)
45
0 commit comments