Fix clippy lints

This commit is contained in:
Héctor Ramón Jiménez 2023-11-29 22:37:54 +01:00
parent 9b34b2ac19
commit 7def3ee38a
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 28 additions and 19 deletions

View file

@ -1,10 +1,12 @@
use crate::core::{window, Size};
use crate::graphics::Compositor;
use crate::multi_window::{Application, State};
use iced_graphics::Compositor;
use iced_style::application::StyleSheet;
use std::fmt::{Debug, Formatter};
use crate::style::application::StyleSheet;
use winit::monitor::MonitorHandle;
use std::fmt::{Debug, Formatter};
pub struct Windows<A: Application, C: Compositor>
where
<A::Renderer as crate::core::Renderer>::Theme: StyleSheet,
@ -33,7 +35,7 @@ where
&self
.raw
.iter()
.map(|raw| raw.id())
.map(winit::window::Window::id)
.collect::<Vec<winit::window::WindowId>>(),
)
.field("states", &self.states)
@ -131,7 +133,9 @@ where
}
pub fn last_monitor(&self) -> Option<MonitorHandle> {
self.raw.last().and_then(|w| w.current_monitor())
self.raw
.last()
.and_then(winit::window::Window::current_monitor)
}
pub fn last(&self) -> usize {