diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-12-02 14:28:35 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-13 17:03:44 -0500 |
| commit | d22acb77b219f1abe7265ea3a6d88017523a2d7e (patch) | |
| tree | b4fc9a578ce2091bf89c0ce113f8face1a901425 /src/libstd/path | |
| parent | 0fcd73037358b5f39276cf48f600299c44c7ccec (diff) | |
| download | rust-d22acb77b219f1abe7265ea3a6d88017523a2d7e.tar.gz rust-d22acb77b219f1abe7265ea3a6d88017523a2d7e.zip | |
libstd: fix fallout
Diffstat (limited to 'src/libstd/path')
| -rw-r--r-- | src/libstd/path/posix.rs | 4 | ||||
| -rw-r--r-- | src/libstd/path/windows.rs | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index 470e1b4dbb7..6cafedcad11 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -32,8 +32,8 @@ use super::{BytesContainer, GenericPath, GenericPathUnsafe}; pub type Components<'a> = Splits<'a, u8>; /// Iterator that yields successive components of a Path as Option<&str> -pub type StrComponents<'a> = Map<'a, &'a [u8], Option<&'a str>, - Components<'a>>; +pub type StrComponents<'a> = + Map<&'a [u8], Option<&'a str>, Components<'a>, fn(&[u8]) -> Option<&str>>; /// Represents a POSIX file path #[deriving(Clone)] diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index ea522536d22..c3242c9cead 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -38,12 +38,12 @@ use super::{contains_nul, BytesContainer, GenericPath, GenericPathUnsafe}; /// /// Each component is yielded as Option<&str> for compatibility with PosixPath, but /// every component in WindowsPath is guaranteed to be Some. -pub type StrComponents<'a> = Map<'a, &'a str, Option<&'a str>, - CharSplits<'a, char>>; +pub type StrComponents<'a> = + Map<&'a str, Option<&'a str>, CharSplits<'a, char>, fn(&'a str) -> Option<&'a str>>; /// Iterator that yields successive components of a Path as &[u8] -pub type Components<'a> = Map<'a, Option<&'a str>, &'a [u8], - StrComponents<'a>>; +pub type Components<'a> = + Map<Option<&'a str>, &'a [u8], StrComponents<'a>, fn(Option<&str>) -> &[u8]>; /// Represents a Windows path // Notes for Windows path impl: |
