chore: fix nightly clippy

This commit is contained in:
Kirill Chibisov 2025-10-07 17:17:15 +09:00
parent 66283a79bd
commit d815bc089c
6 changed files with 8 additions and 13 deletions

View file

@ -8,7 +8,7 @@ use std::time::Duration;
#[doc(inline)]
pub use cursor_icon::CursorIcon;
use crate::as_any::{impl_dyn_casting, AsAny};
use crate::as_any::AsAny;
/// The maximum width and height for a cursor when using [`CustomCursorSource::from_rgba`].
pub const MAX_CURSOR_SIZE: u16 = 2048;

View file

@ -3,7 +3,7 @@ use std::ops::Deref;
use std::sync::Arc;
use std::{fmt, io, mem};
use crate::as_any::{impl_dyn_casting, AsAny};
use crate::as_any::AsAny;
pub(crate) const PIXEL_SIZE: usize = mem::size_of::<u32>();

View file

@ -13,7 +13,7 @@ use std::sync::Arc;
use dpi::{PhysicalPosition, PhysicalSize};
use crate::as_any::{impl_dyn_casting, AsAny};
use crate::as_any::AsAny;
/// Handle to a monitor.
///

View file

@ -1601,17 +1601,18 @@ pub enum WindowLevel {
/// The purpose should reflect the kind of data to be entered.
/// The purpose may improve UX by optimizing the IME for the specific use case,
/// for example showing relevant characters and hiding unneeded ones,
/// or changing the icon of the confrirmation button,
/// or changing the icon of the confirmation button,
/// if winit can express the purpose to the platform and the platform reacts accordingly.
///
/// ## Platform-specific
///
/// - **iOS / Android / Web / Windows / X11 / macOS / Orbital:** Unsupported.
#[non_exhaustive]
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash, Default)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum ImePurpose {
/// No special purpose for the IME (default).
#[default]
Normal,
/// The IME is used for password input.
/// The IME will treat the contents as sensitive.
@ -1638,12 +1639,6 @@ pub enum ImePurpose {
DateTime,
}
impl Default for ImePurpose {
fn default() -> Self {
Self::Normal
}
}
bitflags! {
/// IME hints
///