Skip to content

Commit 4d1967f

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@ 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 {
302+
impl Into<io::Error> for GlobError {
303+
fn into(self) -> io::Error {
303304
self.error
304305
}
305306
}

0 commit comments

Comments
 (0)