mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
build: upgrade rustc to 1.81.0 (#34270)
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
26f61103d6
commit
7fcde1f7a3
15 changed files with 16 additions and 26 deletions
|
@ -125,7 +125,7 @@ impl AllPendingLoads {
|
|||
}
|
||||
|
||||
fn remove(&mut self, key: &LoadKey) -> Option<PendingLoad> {
|
||||
self.loads.remove(key).map(|pending_load| {
|
||||
self.loads.remove(key).inspect(|pending_load| {
|
||||
self.url_to_load_key
|
||||
.remove(&(
|
||||
pending_load.url.clone(),
|
||||
|
@ -133,7 +133,6 @@ impl AllPendingLoads {
|
|||
pending_load.cors_setting,
|
||||
))
|
||||
.unwrap();
|
||||
pending_load
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -244,9 +244,8 @@ impl StorageManager {
|
|||
let old_value = data
|
||||
.get_mut(&origin)
|
||||
.and_then(|&mut (ref mut total, ref mut entry)| {
|
||||
entry.remove(&name).map(|old| {
|
||||
entry.remove(&name).inspect(|old| {
|
||||
*total -= name.as_bytes().len() + old.as_bytes().len();
|
||||
old
|
||||
})
|
||||
});
|
||||
sender.send(old_value).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue