Skip to content

Commit 9c46340

Browse files
committed
Update for stabilized io::Error
As per rust-lang/rust#23919, the PartialEq trait was removed from Error. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 18b7102 commit 9c46340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl fmt::Display for GlobError {
239239
}
240240

241241
fn is_dir(p: &Path) -> bool {
242-
fs::metadata(p).map(|m| m.is_dir()) == Ok(true)
242+
fs::metadata(p).map(|m| m.is_dir()).unwrap_or(false)
243243
}
244244

245245
/// An alias for a glob iteration result.

0 commit comments

Comments
 (0)