Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/io/utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use crate::utils::Context;

use std::{error::Error as StdError, fmt, io};

/// Wrap `std::io::Error` with additional message
///
/// Keeps the original error kind and stores the original I/O error as `source`.
Expand All @@ -9,8 +11,6 @@ impl<T> Context for Result<T, std::io::Error> {
}
}

use std::{error::Error as StdError, fmt, io};

#[derive(Debug)]
pub(crate) struct VerboseError {
source: io::Error,
Expand All @@ -36,10 +36,6 @@ impl fmt::Display for VerboseError {
}

impl StdError for VerboseError {
fn description(&self) -> &str {
self.source.description()
}

fn source(&self) -> Option<&(dyn StdError + 'static)> {
Some(&self.source)
}
Expand Down