about summary refs log tree commit diff
path: root/src/librustpkg/package_path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustpkg/package_path.rs')
-rw-r--r--src/librustpkg/package_path.rs20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/librustpkg/package_path.rs b/src/librustpkg/package_path.rs
index a508d2ce153..4ba9c8066e4 100644
--- a/src/librustpkg/package_path.rs
+++ b/src/librustpkg/package_path.rs
@@ -10,17 +10,31 @@
 
 // rustpkg utilities having to do with local and remote paths
 
-use std::path::Path;
-use std::option::Some;
+use std::clone::Clone;
+use std::hash::Streaming;
 use std::hash;
+use std::option::Some;
+use std::path::Path;
 use std::rt::io::Writer;
-use std::hash::Streaming;
 
 /// Wrappers to prevent local and remote paths from getting confused
 /// (These will go away after #6407)
 pub struct RemotePath (Path);
+
+impl Clone for RemotePath {
+    fn clone(&self) -> RemotePath {
+        RemotePath((**self).clone())
+    }
+}
+
 pub struct LocalPath (Path);
 
+impl Clone for LocalPath {
+    fn clone(&self) -> LocalPath {
+        LocalPath((**self).clone())
+    }
+}
+
 
 // normalize should be the only way to construct a LocalPath
 // (though this isn't enforced)