aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-10-30 15:45:25 +0100
committerMs2ger <Ms2ger@gmail.com>2015-10-30 15:45:25 +0100
commitb0841e007e9805ae8905f17d1eda39c700fb7e52 (patch)
tree3e4bb64377b37e6aed990c207bfcbdaca687fd1a /components/script/dom/xmlhttprequest.rs
parentf85f22c04fcd32c8fc3b02032a8ab62285992bd0 (diff)
downloadservo-b0841e007e9805ae8905f17d1eda39c700fb7e52.tar.gz
servo-b0841e007e9805ae8905f17d1eda39c700fb7e52.zip
Avoid a Vec copy in SendParam::extract.
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r--components/script/dom/xmlhttprequest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs
index a68d9478270..6bf36809ff6 100644
--- a/components/script/dom/xmlhttprequest.rs
+++ b/components/script/dom/xmlhttprequest.rs
@@ -1110,7 +1110,7 @@ impl Extractable for SendParam {
},
eURLSearchParams(ref usp) => {
// Default encoding is UTF-8.
- usp.r().serialize(None).as_bytes().to_owned()
+ usp.r().serialize(None).into_bytes()
},
}
}