Combine two impls into one

This commit is contained in:
CYBAI 2018-12-25 00:17:54 +08:00
parent 11d1184663
commit b5276194f4

View file

@ -182,9 +182,7 @@ impl URLSearchParams {
.extend_pairs(&*list)
.finish()
}
}
impl URLSearchParams {
// https://url.spec.whatwg.org/#concept-urlsearchparams-update
fn update_steps(&self) {
if let Some(url) = self.url.root() {