Skip to content

Commit cb8be9f

Browse files
committed
Replaced into_error method with impl Into
1 parent e0b33b0 commit cb8be9f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,11 @@ impl GlobError {
297297
pub fn error(&self) -> &io::Error {
298298
&self.error
299299
}
300+
}
300301

301-
/// Consumes self, returning the _raw_ underlying `io::Error`
302-
pub fn into_error(self) -> io::Error {
303-
self.error
302+
impl From<GlobError> for io::Error {
303+
fn from(value: GlobError) -> Self {
304+
value.error
304305
}
305306
}
306307

0 commit comments

Comments
 (0)