yoda: cargo fix --lib across all crates — drop ~115 trivial warnings
Some checks are pending
Audit / vulnerabilities (push) Waiting to run
Check / wasm (push) Waiting to run
Check / widget (push) Waiting to run
Document / all (push) Waiting to run
Format / all (push) Waiting to run
Lint / all (push) Waiting to run
Test / all (macOS-latest, 1.88) (push) Waiting to run
Test / all (macOS-latest, beta) (push) Waiting to run
Test / all (macOS-latest, stable) (push) Waiting to run
Test / all (ubuntu-latest, 1.88) (push) Waiting to run
Test / all (ubuntu-latest, beta) (push) Waiting to run
Test / all (ubuntu-latest, stable) (push) Waiting to run
Test / all (windows-latest, 1.88) (push) Waiting to run
Test / all (windows-latest, beta) (push) Waiting to run
Test / all (windows-latest, stable) (push) Waiting to run
Some checks are pending
Audit / vulnerabilities (push) Waiting to run
Check / wasm (push) Waiting to run
Check / widget (push) Waiting to run
Document / all (push) Waiting to run
Format / all (push) Waiting to run
Lint / all (push) Waiting to run
Test / all (macOS-latest, 1.88) (push) Waiting to run
Test / all (macOS-latest, beta) (push) Waiting to run
Test / all (macOS-latest, stable) (push) Waiting to run
Test / all (ubuntu-latest, 1.88) (push) Waiting to run
Test / all (ubuntu-latest, beta) (push) Waiting to run
Test / all (ubuntu-latest, stable) (push) Waiting to run
Test / all (windows-latest, 1.88) (push) Waiting to run
Test / all (windows-latest, beta) (push) Waiting to run
Test / all (windows-latest, stable) (push) Waiting to run
Auto-applied suggestions (unused imports, _-prefixed unused params, redundant mutability) on iced_core, iced_widget, iced_runtime, iced_winit, iced_wgpu, iced_graphics, iced_tiny_skia. From 170 warnings down to 55. Leyoda 2026 – GPLv3
This commit is contained in:
parent
f388dfdfe4
commit
8a7a32ff92
45 changed files with 85 additions and 139 deletions
|
|
@ -18,7 +18,7 @@ use cursor_icon::CursorIcon;
|
|||
use iced_futures::futures::channel::mpsc;
|
||||
use iced_graphics::{Compositor, compositor};
|
||||
use iced_runtime::core::{Vector, window};
|
||||
use raw_window_handle::{DisplayHandle, HasDisplayHandle, HasWindowHandle};
|
||||
use raw_window_handle::{HasDisplayHandle, HasWindowHandle};
|
||||
use raw_window_handle::{HasRawDisplayHandle, RawWindowHandle};
|
||||
use sctk_event::SctkEvent;
|
||||
use std::{collections::HashMap, sync::Arc};
|
||||
|
|
@ -189,12 +189,12 @@ impl WaylandSpecific {
|
|||
winit_event_sender,
|
||||
proxy,
|
||||
sender,
|
||||
display_handle,
|
||||
conn,
|
||||
display_handle: _,
|
||||
conn: _,
|
||||
surface_ids,
|
||||
modifiers,
|
||||
subsurface_state,
|
||||
surface_subsurfaces,
|
||||
surface_subsurfaces: _,
|
||||
} = self;
|
||||
|
||||
match e {
|
||||
|
|
@ -237,7 +237,7 @@ impl WaylandSpecific {
|
|||
&mut self,
|
||||
keep: F,
|
||||
) {
|
||||
self.surface_subsurfaces.retain(|k, v| keep(*k))
|
||||
self.surface_subsurfaces.retain(|k, _v| keep(*k))
|
||||
}
|
||||
|
||||
pub(crate) fn clear_subsurface_list(&mut self) {
|
||||
|
|
@ -250,7 +250,7 @@ impl WaylandSpecific {
|
|||
wl_surface: &WlSurface,
|
||||
) {
|
||||
let subsurfaces = crate::subsurface_widget::take_subsurfaces();
|
||||
let mut entry = self.surface_subsurfaces.entry(id);
|
||||
let entry = self.surface_subsurfaces.entry(id);
|
||||
let surface_subsurfaces = entry.or_default();
|
||||
let Some(subsurface_state) = self.subsurface_state.as_mut() else {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue