diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2013-05-29 19:59:33 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2013-05-30 15:20:36 -0400 |
| commit | 7a1a40890d48321c69f66bd07e3a23d5d5ab939a (patch) | |
| tree | 54eb8701f89acc95b05a2de5cfcd5c9be2742a3d /src/libstd/path.rs | |
| parent | 5209709e46ecfac2fd4db527952fe7ef96400801 (diff) | |
| download | rust-7a1a40890d48321c69f66bd07e3a23d5d5ab939a.tar.gz rust-7a1a40890d48321c69f66bd07e3a23d5d5ab939a.zip | |
Remove copy bindings from patterns.
Diffstat (limited to 'src/libstd/path.rs')
| -rw-r--r-- | src/libstd/path.rs | 8 |
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, }; |
