diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-12-14 23:24:36 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-19 10:51:00 -0500 |
| commit | a77e8a63d5d4c0fa04a878995824e727870135f9 (patch) | |
| tree | c422bcbfb5fe130035b38f2c7eb56e632845ca9a /src/libstd/path | |
| parent | 2df30a47e2e0ef563d9ed80cb3cc258cbea0f53a (diff) | |
| download | rust-a77e8a63d5d4c0fa04a878995824e727870135f9.tar.gz rust-a77e8a63d5d4c0fa04a878995824e727870135f9.zip | |
libstd: use `#[deriving(Copy)]`
Diffstat (limited to 'src/libstd/path')
| -rw-r--r-- | src/libstd/path/windows.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index 5cbefb0d3d8..b498b3e8ad0 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -22,7 +22,6 @@ use hash; use io::Writer; use iter::{AdditiveIterator, DoubleEndedIteratorExt, Extend}; use iter::{Iterator, IteratorExt, Map}; -use kinds::Copy; use mem; use option::Option; use option::Option::{Some, None}; @@ -970,7 +969,7 @@ pub fn is_sep_byte_verbatim(u: &u8) -> bool { } /// Prefix types for Path -#[deriving(PartialEq, Clone, Show)] +#[deriving(Copy, PartialEq, Clone, Show)] pub enum PathPrefix { /// Prefix `\\?\`, uint is the length of the following component VerbatimPrefix(uint), @@ -986,8 +985,6 @@ pub enum PathPrefix { DiskPrefix } -impl Copy for PathPrefix {} - fn parse_prefix<'a>(mut path: &'a str) -> Option<PathPrefix> { if path.starts_with("\\\\") { // \\ |
