diff options
author | Ms2ger <Ms2ger@gmail.com> | 2015-10-30 15:45:25 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2015-10-30 15:45:25 +0100 |
commit | b0841e007e9805ae8905f17d1eda39c700fb7e52 (patch) | |
tree | 3e4bb64377b37e6aed990c207bfcbdaca687fd1a /components/script/dom/xmlhttprequest.rs | |
parent | f85f22c04fcd32c8fc3b02032a8ab62285992bd0 (diff) | |
download | servo-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.rs | 2 |
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() }, } } |