mirror of
https://github.com/servo/servo.git
synced 2025-09-27 15:20:09 +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
|
@ -149,7 +149,7 @@ pub fn flip_y_rgba8_image_inplace(size: Size2D<u32>, pixels: &mut [u8]) {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn rgba8_get_rect(pixels: &[u8], size: Size2D<u32>, rect: Rect<u32>) -> Cow<[u8]> {
|
||||
pub fn rgba8_get_rect(pixels: &[u8], size: Size2D<u32>, rect: Rect<u32>) -> Cow<'_, [u8]> {
|
||||
assert!(!rect.is_empty());
|
||||
assert!(Rect::from_size(size).contains_rect(&rect));
|
||||
assert_eq!(pixels.len() % 4, 0);
|
||||
|
@ -311,7 +311,7 @@ impl RasterImage {
|
|||
self.frames.len() > 1
|
||||
}
|
||||
|
||||
pub fn frames(&self) -> impl Iterator<Item = ImageFrameView> {
|
||||
pub fn frames(&self) -> impl Iterator<Item = ImageFrameView<'_>> {
|
||||
self.frames.iter().map(|frame| ImageFrameView {
|
||||
delay: frame.delay,
|
||||
bytes: self.bytes.get(frame.byte_range.clone()).unwrap(),
|
||||
|
@ -320,7 +320,7 @@ impl RasterImage {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn first_frame(&self) -> ImageFrameView {
|
||||
pub fn first_frame(&self) -> ImageFrameView<'_> {
|
||||
self.frames()
|
||||
.next()
|
||||
.expect("All images should have at least one frame")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue