mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Avoid a Vec copy in SendParam::extract.
This commit is contained in:
parent
f85f22c04f
commit
b0841e007e
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue