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
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,18 @@ impl GlobError {
}

/// Consumes self, returning the _raw_ underlying `io::Error`
#[deprecated(note = "use `.into` instead")]
pub fn into_error(self) -> io::Error {
self.error
}
}

impl From<GlobError> for io::Error {
fn from(value: GlobError) -> Self {
value.error
}
}

impl Error for GlobError {
#[allow(deprecated)]
fn description(&self) -> &str {
Expand Down