diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2013-08-09 13:41:10 -0700 |
---|---|---|
committer | Keegan McAllister <kmcallister@mozilla.com> | 2013-08-15 13:55:40 -0700 |
commit | ffe60ea02704c0bd4545a194bff3f2feafd0133c (patch) | |
tree | 97f40c907aae08235e4bc856681cd1eb6df5a274 /src/components/util/url.rs | |
parent | 907d9f23cf8ab5be112376199c3c57ba9e4a3035 (diff) | |
download | servo-ffe60ea02704c0bd4545a194bff3f2feafd0133c.tar.gz servo-ffe60ea02704c0bd4545a194bff3f2feafd0133c.zip |
Trait changes, and eliminate 'copy'
Diffstat (limited to 'src/components/util/url.rs')
-rw-r--r-- | src/components/util/url.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/util/url.rs b/src/components/util/url.rs index 4aca0ef67f8..4d08386511d 100644 --- a/src/components/util/url.rs +++ b/src/components/util/url.rs @@ -44,7 +44,7 @@ pub fn make_url(str_url: ~str, current_url: Option<Url>) -> Url { path.push(p.to_str()); } let path = path.init(); - let mut path = path.iter().transform(|x| copy *x).collect::<~[~str]>(); + let mut path = path.iter().transform(|x| (*x).clone()).collect::<~[~str]>(); path.push(str_url); let path = path.connect("/"); @@ -118,6 +118,6 @@ mod make_url_tests { pub type UrlMap<T> = @mut HashMap<Url, T>; -pub fn url_map<T: Copy>() -> UrlMap<T> { +pub fn url_map<T: Clone + 'static>() -> UrlMap<T> { @mut HashMap::new() } |