about summary refs log tree commit diff
path: root/src/libglob
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-01-30 14:37:20 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-03 09:32:34 -0800
commitc0e77dc2ee5d703ef5d8adcaa0f7c10ac7fbb7f9 (patch)
tree3a9180ad781ac8702b1a866734d6e67e57b83cac /src/libglob
parent27a9bf773c525e17dce80320af56b7c7814f9829 (diff)
downloadrust-c0e77dc2ee5d703ef5d8adcaa0f7c10ac7fbb7f9.tar.gz
rust-c0e77dc2ee5d703ef5d8adcaa0f7c10ac7fbb7f9.zip
glob: Remove io_error usage
Diffstat (limited to 'src/libglob')
-rw-r--r--src/libglob/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libglob/lib.rs b/src/libglob/lib.rs
index 98bf5533210..c6ecb7697da 100644
--- a/src/libglob/lib.rs
+++ b/src/libglob/lib.rs
@@ -29,7 +29,6 @@
 #[license = "MIT/ASL2"];
 
 use std::{os, path};
-use std::io;
 use std::io::fs;
 use std::path::is_sep;
 
@@ -153,7 +152,7 @@ impl Iterator<Path> for Paths {
 }
 
 fn list_dir_sorted(path: &Path) -> ~[Path] {
-    match io::result(|| fs::readdir(path)) {
+    match fs::readdir(path) {
         Ok(mut children) => {
             children.sort_by(|p1, p2| p2.filename().cmp(&p1.filename()));
             children