summaryrefslogtreecommitdiffstats
path: root/src/file.rs
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-03-22 19:46:45 +0000
committerBen S <ogham@bsago.me>2015-03-22 19:46:45 +0000
commit9c2858e447ac42296ca907747173d4585297fc64 (patch)
treeee3ebfa04be31cf0a52ebfc6d9e60d40004cae6b /src/file.rs
parent1986c504bad331972117c753e6376317e127db7c (diff)
Upgrade to latest Rust
- old_path::Path isn't imported by default anymore - range -> ..
Diffstat (limited to 'src/file.rs')
-rw-r--r--src/file.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/file.rs b/src/file.rs
index 9d4f6da..46c344e 100644
--- a/src/file.rs
+++ b/src/file.rs
@@ -1,5 +1,13 @@
+// Yeah, we still have to use the old path and IO libraries, until they sprout
+// the ability to inspect file types and stat times and other such things.
+//
+// There's a tracking issue for it:
+// https://github.com/rust-lang/rfcs/issues/939
+
use std::old_io::{fs, IoResult};
use std::old_io as io;
+use std::old_path::GenericPath;
+use std::old_path::posix::Path;
use std::ascii::AsciiExt;
use std::os::getcwd;
@@ -494,6 +502,8 @@ pub mod test {
pub use column::{Cell, Column};
pub use std::old_io as io;
+ pub use std::old_path::GenericPath;
+ pub use std::old_path::posix::Path;
pub use output::details::UserLocale;
pub use users::{User, Group};