We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc308b1 + 99d5f12 commit 172265eCopy full SHA for 172265e
src/lib.rs
@@ -61,6 +61,7 @@
61
#![deny(missing_docs)]
62
#![cfg_attr(all(test, windows), feature(std_misc))]
63
64
+#[allow(unused_imports)]
65
use std::ascii::AsciiExt;
66
use std::cmp;
67
use std::fmt;
@@ -279,12 +280,18 @@ impl GlobError {
279
280
pub fn error(&self) -> &io::Error {
281
&self.error
282
}
283
+
284
+ /// Consumes self, returning the _raw_ underlying `io::Error`
285
+ pub fn into_error(self) -> io::Error {
286
+ self.error
287
+ }
288
289
290
impl Error for GlobError {
291
fn description(&self) -> &str {
292
self.error.description()
293
294
295
fn cause(&self) -> Option<&Error> {
296
Some(&self.error)
297
0 commit comments