Skip to content

Commit c0e77dc

Browse files
committed
glob: Remove io_error usage
1 parent 27a9bf7 commit c0e77dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libglob/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#[license = "MIT/ASL2"];
3030

3131
use std::{os, path};
32-
use std::io;
3332
use std::io::fs;
3433
use std::path::is_sep;
3534

@@ -153,7 +152,7 @@ impl Iterator<Path> for Paths {
153152
}
154153

155154
fn list_dir_sorted(path: &Path) -> ~[Path] {
156-
match io::result(|| fs::readdir(path)) {
155+
match fs::readdir(path) {
157156
Ok(mut children) => {
158157
children.sort_by(|p1, p2| p2.filename().cmp(&p1.filename()));
159158
children

0 commit comments

Comments
 (0)