diff options
Diffstat (limited to 'src/libstd/path')
| -rw-r--r-- | src/libstd/path/mod.rs | 1 | ||||
| -rw-r--r-- | src/libstd/path/posix.rs | 8 | ||||
| -rw-r--r-- | src/libstd/path/windows.rs | 10 |
3 files changed, 10 insertions, 9 deletions
diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs index 6488595ea4f..354cc10f022 100644 --- a/src/libstd/path/mod.rs +++ b/src/libstd/path/mod.rs @@ -687,6 +687,7 @@ fn from_utf8_with_replacement(mut v: &[u8]) -> ~str { } #[cfg(test)] mod tests { + use prelude::*; use super::{GenericPath, PosixPath, WindowsPath}; use c_str::ToCStr; diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index d149634a396..7b94de6c094 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -21,7 +21,8 @@ use str; use str::Str; use to_bytes::IterBytes; use vec; -use vec::{CopyableVector, RSplitIterator, SplitIterator, Vector, VectorVector}; +use vec::{CopyableVector, RSplitIterator, SplitIterator, Vector, VectorVector, + ImmutableEqVector, OwnedVector, ImmutableVector, OwnedCopyableVector}; use super::{BytesContainer, GenericPath, GenericPathUnsafe}; /// Iterator that yields successive components of a Path as &[u8] @@ -441,11 +442,9 @@ static dot_dot_static: &'static [u8] = bytes!(".."); #[cfg(test)] mod tests { + use prelude::*; use super::*; - use option::{Option, Some, None}; - use iter::Iterator; use str; - use vec::Vector; macro_rules! t( (s: $path:expr, $exp:expr) => ( @@ -1324,6 +1323,7 @@ mod tests { mod bench { use extra::test::BenchHarness; use super::*; + use prelude::*; #[bench] fn join_home_dir(bh: &mut BenchHarness) { diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index 913b314c00b..09b00be7e9d 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -13,14 +13,16 @@ use ascii::AsciiCast; use c_str::{CString, ToCStr}; use cast; +use clone::Clone; +use container::Container; use cmp::Eq; use from_str::FromStr; use iter::{AdditiveIterator, DoubleEndedIterator, Extendable, Invert, Iterator, Map}; use option::{Option, Some, None}; use str; -use str::{CharSplitIterator, OwnedStr, Str, StrVector}; +use str::{CharSplitIterator, OwnedStr, Str, StrVector, StrSlice}; use to_bytes::IterBytes; -use vec::Vector; +use vec::{Vector, OwnedVector, ImmutableVector}; use super::{contains_nul, BytesContainer, GenericPath, GenericPathUnsafe}; /// Iterator that yields successive components of a Path as &str @@ -1051,11 +1053,9 @@ fn prefix_len(p: Option<PathPrefix>) -> uint { #[cfg(test)] mod tests { + use prelude::*; use super::*; use super::parse_prefix; - use option::{Some,None}; - use iter::Iterator; - use vec::Vector; macro_rules! t( (s: $path:expr, $exp:expr) => ( |
