Merge pull request #2427 from iced-rs/winit-0.30

Update `winit` to `0.30`
This commit is contained in:
Héctor Ramón 2024-05-08 09:23:53 +02:00 committed by GitHub
commit e07b42ac96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 931 additions and 643 deletions

View file

@ -67,8 +67,6 @@ use crate::core::{
use crate::graphics::text::{Editor, Paragraph};
use crate::graphics::Viewport;
use std::cell::RefCell;
/// A [`wgpu`] graphics renderer for [`iced`].
///
/// [`wgpu`]: https://github.com/gfx-rs/wgpu-rs
@ -84,7 +82,7 @@ pub struct Renderer {
// TODO: Centralize all the image feature handling
#[cfg(any(feature = "svg", feature = "image"))]
image_cache: RefCell<image::Cache>,
image_cache: std::cell::RefCell<image::Cache>,
}
impl Renderer {
@ -103,7 +101,9 @@ impl Renderer {
text_storage: text::Storage::new(),
#[cfg(any(feature = "svg", feature = "image"))]
image_cache: RefCell::new(_engine.create_image_cache(_device)),
image_cache: std::cell::RefCell::new(
_engine.create_image_cache(_device),
),
}
}