mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
cargo: Bump rustc to 1.89 (#36818)
Update Rustc to 1.89. Reviewable by commit. Leftover work: - #37330 - #38777 --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
8587536755
commit
3225d19907
126 changed files with 408 additions and 610 deletions
|
@ -1449,7 +1449,7 @@ impl XMLHttpRequest {
|
|||
// Step 2
|
||||
let bytes = self.response.borrow();
|
||||
// Step 3
|
||||
if bytes.len() == 0 {
|
||||
if bytes.is_empty() {
|
||||
return rval.set(NullValue());
|
||||
}
|
||||
// Step 4
|
||||
|
@ -1513,10 +1513,7 @@ impl XMLHttpRequest {
|
|||
let doc = win.Document();
|
||||
let docloader = DocumentLoader::new(&doc.loader());
|
||||
let base = wr.get_url();
|
||||
let parsed_url = match base.join(&self.ResponseURL().0) {
|
||||
Ok(parsed) => Some(parsed),
|
||||
Err(_) => None, // Step 7
|
||||
};
|
||||
let parsed_url = base.join(&self.ResponseURL().0).ok();
|
||||
let content_type = Some(self.final_mime_type());
|
||||
Document::new(
|
||||
win,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue