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:
webbeef 2025-08-19 04:07:53 -07:00 committed by GitHub
parent 8587536755
commit 3225d19907
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
126 changed files with 408 additions and 610 deletions

View file

@ -350,7 +350,7 @@ impl CrossProcessCompositorApi {
/// This trait is used to notify lock/unlock messages and get the
/// required info that WR needs.
pub trait WebrenderExternalImageApi {
fn lock(&mut self, id: u64) -> (ExternalImageSource, UntypedSize2D<i32>);
fn lock(&mut self, id: u64) -> (ExternalImageSource<'_>, UntypedSize2D<i32>);
fn unlock(&mut self, id: u64);
}
@ -433,7 +433,7 @@ impl ExternalImageHandler for WebrenderExternalImageHandlers {
/// image content.
/// The WR client should not change the image content until the
/// unlock() call.
fn lock(&mut self, key: ExternalImageId, _channel_index: u8) -> ExternalImage {
fn lock(&mut self, key: ExternalImageId, _channel_index: u8) -> ExternalImage<'_> {
let external_images = self.external_images.lock().unwrap();
let handler_type = external_images
.get(&key)

View file

@ -466,7 +466,7 @@ impl WindowRenderingContext {
Ok(())
}
pub fn surfman_details(&self) -> (RefMut<Device>, RefMut<Context>) {
pub fn surfman_details(&self) -> (RefMut<'_, Device>, RefMut<'_, Context>) {
(
self.surfman_context.device.borrow_mut(),
self.surfman_context.context.borrow_mut(),