We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
into_error
impl Into
1 parent e0b33b0 commit 335da33Copy full SHA for 335da33
1 file changed
src/lib.rs
@@ -299,11 +299,18 @@ impl GlobError {
299
}
300
301
/// Consumes self, returning the _raw_ underlying `io::Error`
302
+ #[deprecated(note = "use `.into` instead")]
303
pub fn into_error(self) -> io::Error {
304
self.error
305
306
307
308
+impl From<GlobError> for io::Error {
309
+ fn from(value: GlobError) -> Self {
310
+ value.error
311
+ }
312
+}
313
+
314
impl Error for GlobError {
315
#[allow(deprecated)]
316
fn description(&self) -> &str {
0 commit comments