From 438893b36fe241b37eb76250f7c38ac8832f5706 Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Wed, 5 Mar 2014 01:19:14 -0500 Subject: Removed DeepClone. Issue #12698. --- src/libstd/path/posix.rs | 2 +- src/libstd/path/windows.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstd/path') diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index 321186e4808..a3380b5db1d 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -38,7 +38,7 @@ pub type RevStrComponents<'a> = Map<'a, &'a [u8], Option<&'a str>, RevComponents<'a>>; /// Represents a POSIX file path -#[deriving(Clone, DeepClone)] +#[deriving(Clone)] pub struct Path { priv repr: ~[u8], // assumed to never be empty or contain NULs priv sepidx: Option // index of the final separator in repr diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index 90f7890f9ea..5b358819e41 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -79,7 +79,7 @@ pub type RevComponents<'a> = Map<'a, Option<&'a str>, &'a [u8], // // 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, DeepClone)] +#[deriving(Clone)] pub struct Path { priv repr: ~str, // assumed to never be empty priv prefix: Option, @@ -942,7 +942,7 @@ pub fn is_sep_byte_verbatim(u: &u8) -> bool { } /// Prefix types for Path -#[deriving(Eq, Clone, DeepClone)] +#[deriving(Eq, Clone)] pub enum PathPrefix { /// Prefix `\\?\`, uint is the length of the following component VerbatimPrefix(uint), -- cgit 1.4.1-3-g733a5