mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove some useless Option<T> wrappers from ServoUrl methods
This commit is contained in:
parent
bc5c4fa892
commit
54d37d920c
6 changed files with 34 additions and 56 deletions
|
@ -52,9 +52,8 @@ impl URL {
|
|||
}
|
||||
|
||||
pub fn set_query_pairs(&self, pairs: &[(String, String)]) {
|
||||
if let Some(ref mut url) = self.url.borrow_mut().as_mut_url() {
|
||||
url.query_pairs_mut().clear().extend_pairs(pairs);
|
||||
}
|
||||
let mut url = self.url.borrow_mut();
|
||||
url.as_mut_url().query_pairs_mut().clear().extend_pairs(pairs);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue