about summary refs log tree commit diff
path: root/src/libstd/path
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2014-12-14 23:24:36 -0500
committerJorge Aparicio <japaricious@gmail.com>2014-12-19 10:51:00 -0500
commita77e8a63d5d4c0fa04a878995824e727870135f9 (patch)
treec422bcbfb5fe130035b38f2c7eb56e632845ca9a /src/libstd/path
parent2df30a47e2e0ef563d9ed80cb3cc258cbea0f53a (diff)
downloadrust-a77e8a63d5d4c0fa04a878995824e727870135f9.tar.gz
rust-a77e8a63d5d4c0fa04a878995824e727870135f9.zip
libstd: use `#[deriving(Copy)]`
Diffstat (limited to 'src/libstd/path')
-rw-r--r--src/libstd/path/windows.rs5
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("\\\\") {
         // \\