mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +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
|
@ -82,7 +82,7 @@ pub(crate) fn prepare_workerscope_init(
|
|||
devtools_sender: Option<IpcSender<DevtoolScriptControlMsg>>,
|
||||
worker_id: Option<WorkerId>,
|
||||
) -> WorkerGlobalScopeInit {
|
||||
let init = WorkerGlobalScopeInit {
|
||||
WorkerGlobalScopeInit {
|
||||
resource_threads: global.resource_threads().clone(),
|
||||
mem_profiler_chan: global.mem_profiler_chan().clone(),
|
||||
to_devtools_sender: global.devtools_chan().cloned(),
|
||||
|
@ -94,9 +94,7 @@ pub(crate) fn prepare_workerscope_init(
|
|||
origin: global.origin().immutable().clone(),
|
||||
creation_url: global.creation_url().clone(),
|
||||
inherited_secure_context: Some(global.is_secure_context()),
|
||||
};
|
||||
|
||||
init
|
||||
}
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#the-workerglobalscope-common-interface
|
||||
|
@ -254,7 +252,7 @@ impl WorkerGlobalScope {
|
|||
self.closing.load(Ordering::SeqCst)
|
||||
}
|
||||
|
||||
pub(crate) fn get_url(&self) -> Ref<ServoUrl> {
|
||||
pub(crate) fn get_url(&self) -> Ref<'_, ServoUrl> {
|
||||
self.worker_url.borrow()
|
||||
}
|
||||
|
||||
|
@ -270,7 +268,7 @@ impl WorkerGlobalScope {
|
|||
self.globalscope.pipeline_id()
|
||||
}
|
||||
|
||||
pub(crate) fn policy_container(&self) -> Ref<PolicyContainer> {
|
||||
pub(crate) fn policy_container(&self) -> Ref<'_, PolicyContainer> {
|
||||
self.policy_container.borrow()
|
||||
}
|
||||
|
||||
|
@ -332,7 +330,7 @@ impl WorkerGlobalScope {
|
|||
}
|
||||
|
||||
/// Get a mutable reference to the [`TimerScheduler`] for this [`ServiceWorkerGlobalScope`].
|
||||
pub(crate) fn timer_scheduler(&self) -> RefMut<TimerScheduler> {
|
||||
pub(crate) fn timer_scheduler(&self) -> RefMut<'_, TimerScheduler> {
|
||||
self.timer_scheduler.borrow_mut()
|
||||
}
|
||||
|
||||
|
@ -560,17 +558,7 @@ impl WorkerGlobalScopeMethods<crate::DomTypeHolder> for WorkerGlobalScope {
|
|||
options: &ImageBitmapOptions,
|
||||
can_gc: CanGc,
|
||||
) -> Rc<Promise> {
|
||||
let p = ImageBitmap::create_image_bitmap(
|
||||
self.upcast(),
|
||||
image,
|
||||
0,
|
||||
0,
|
||||
None,
|
||||
None,
|
||||
options,
|
||||
can_gc,
|
||||
);
|
||||
p
|
||||
ImageBitmap::create_image_bitmap(self.upcast(), image, 0, 0, None, None, options, can_gc)
|
||||
}
|
||||
|
||||
/// <https://html.spec.whatwg.org/multipage/#dom-createimagebitmap>
|
||||
|
@ -584,7 +572,7 @@ impl WorkerGlobalScopeMethods<crate::DomTypeHolder> for WorkerGlobalScope {
|
|||
options: &ImageBitmapOptions,
|
||||
can_gc: CanGc,
|
||||
) -> Rc<Promise> {
|
||||
let p = ImageBitmap::create_image_bitmap(
|
||||
ImageBitmap::create_image_bitmap(
|
||||
self.upcast(),
|
||||
image,
|
||||
sx,
|
||||
|
@ -593,8 +581,7 @@ impl WorkerGlobalScopeMethods<crate::DomTypeHolder> for WorkerGlobalScope {
|
|||
Some(sh),
|
||||
options,
|
||||
can_gc,
|
||||
);
|
||||
p
|
||||
)
|
||||
}
|
||||
|
||||
#[cfg_attr(crown, allow(crown::unrooted_must_root))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue