summary refs log tree commit diff
path: root/src/libstd/path.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2013-05-29 19:59:33 -0400
committerNiko Matsakis <niko@alum.mit.edu>2013-05-30 15:20:36 -0400
commit7a1a40890d48321c69f66bd07e3a23d5d5ab939a (patch)
tree54eb8701f89acc95b05a2de5cfcd5c9be2742a3d /src/libstd/path.rs
parent5209709e46ecfac2fd4db527952fe7ef96400801 (diff)
downloadrust-7a1a40890d48321c69f66bd07e3a23d5d5ab939a.tar.gz
rust-7a1a40890d48321c69f66bd07e3a23d5d5ab939a.zip
Remove copy bindings from patterns.
Diffstat (limited to 'src/libstd/path.rs')
-rw-r--r--src/libstd/path.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 39bd57b3c37..9eb7b54f009 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -774,9 +774,9 @@ impl GenericPath for WindowsPath {
 
         /* if rhs has a host set, then the whole thing wins */
         match other.host {
-            Some(copy host) => {
+            Some(ref host) => {
                 return WindowsPath {
-                    host: Some(host),
+                    host: Some(copy *host),
                     device: copy other.device,
                     is_absolute: true,
                     components: copy other.components,
@@ -787,10 +787,10 @@ impl GenericPath for WindowsPath {
 
         /* if rhs has a device set, then a part wins */
         match other.device {
-            Some(copy device) => {
+            Some(ref device) => {
                 return WindowsPath {
                     host: None,
-                    device: Some(device),
+                    device: Some(copy *device),
                     is_absolute: true,
                     components: copy other.components,
                 };