diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-03 22:54:18 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-03 22:54:18 -0500 |
| commit | 351409a62287c7993bc680d9dfcfa13cba9c9c0c (patch) | |
| tree | 47f99908d999aa612a4cd44932dcdc3b3a1a966a /src/libstd/path | |
| parent | 8c5bb80d9b8373dd3c14cde0ba79f7d507839782 (diff) | |
| download | rust-351409a62287c7993bc680d9dfcfa13cba9c9c0c.tar.gz rust-351409a62287c7993bc680d9dfcfa13cba9c9c0c.zip | |
sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rs
Diffstat (limited to 'src/libstd/path')
| -rw-r--r-- | src/libstd/path/posix.rs | 2 | ||||
| -rw-r--r-- | src/libstd/path/windows.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index 067595c5199..ae82e201cb8 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -35,7 +35,7 @@ pub type StrComponents<'a> = Map<&'a [u8], Option<&'a str>, Components<'a>, fn(&[u8]) -> Option<&str>>; /// Represents a POSIX file path -#[deriving(Clone)] +#[derive(Clone)] pub struct Path { repr: Vec<u8>, // assumed to never be empty or contain NULs sepidx: Option<uint> // index of the final separator in repr diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index 6c355634c06..aae8d6cadef 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -78,7 +78,7 @@ pub type Components<'a> = // // The only error condition imposed here is valid utf-8. All other invalid paths are simply // preserved by the data structure; let the Windows API error out on them. -#[deriving(Clone)] +#[derive(Clone)] pub struct Path { repr: String, // assumed to never be empty prefix: Option<PathPrefix>, @@ -969,7 +969,7 @@ pub fn is_sep_byte_verbatim(u: &u8) -> bool { } /// Prefix types for Path -#[deriving(Copy, PartialEq, Clone, Show)] +#[derive(Copy, PartialEq, Clone, Show)] pub enum PathPrefix { /// Prefix `\\?\`, uint is the length of the following component VerbatimPrefix(uint), |
