Avoid a Vec copy in SendParam::extract.

This commit is contained in:
Ms2ger 2015-10-30 15:45:25 +01:00
parent f85f22c04f
commit b0841e007e

View file

@ -1110,7 +1110,7 @@ impl Extractable for SendParam {
}, },
eURLSearchParams(ref usp) => { eURLSearchParams(ref usp) => {
// Default encoding is UTF-8. // Default encoding is UTF-8.
usp.r().serialize(None).as_bytes().to_owned() usp.r().serialize(None).into_bytes()
}, },
} }
} }