Fix latest clippy lints

This commit is contained in:
Héctor Ramón Jiménez 2022-08-17 16:09:25 +02:00
parent 4425839aa4
commit b0705d2f4c
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
6 changed files with 7 additions and 7 deletions

View file

@ -6,7 +6,7 @@ use super::{KeyCode, Modifiers};
/// additional events, feel free to [open an issue] and share your use case!_ /// additional events, feel free to [open an issue] and share your use case!_
/// ///
/// [open an issue]: https://github.com/iced-rs/iced/issues /// [open an issue]: https://github.com/iced-rs/iced/issues
#[derive(Debug, Clone, Copy, PartialEq)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Event { pub enum Event {
/// A keyboard key was pressed. /// A keyboard key was pressed.
KeyPressed { KeyPressed {

View file

@ -1,5 +1,5 @@
/// The strategy used to fill space in a specific dimension. /// The strategy used to fill space in a specific dimension.
#[derive(Debug, Clone, Copy, PartialEq, Hash)] #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Length { pub enum Length {
/// Fill all the remaining space /// Fill all the remaining space
Fill, Fill,

View file

@ -2,7 +2,7 @@ use crate::{Padding, Vector};
use std::f32; use std::f32;
/// An amount of space in 2 dimensions. /// An amount of space in 2 dimensions.
#[derive(Debug, Clone, Copy, PartialEq)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Size<T = f32> { pub struct Size<T = f32> {
/// The width. /// The width.
pub width: T, pub width: T,

View file

@ -1,5 +1,5 @@
/// A 2D vector. /// A 2D vector.
#[derive(Debug, Clone, Copy, PartialEq)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Vector<T = f32> { pub struct Vector<T = f32> {
/// The X component of the [`Vector`] /// The X component of the [`Vector`]
pub x: T, pub x: T,

View file

@ -29,14 +29,14 @@ pub enum Event {
} }
/// A platform specific event /// A platform specific event
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub enum PlatformSpecific { pub enum PlatformSpecific {
/// A MacOS specific event /// A MacOS specific event
MacOS(MacOS), MacOS(MacOS),
} }
/// Describes an event specific to MacOS /// Describes an event specific to MacOS
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub enum MacOS { pub enum MacOS {
/// Triggered when the app receives an URL from the system /// Triggered when the app receives an URL from the system
/// ///

View file

@ -1,7 +1,7 @@
use std::path::PathBuf; use std::path::PathBuf;
/// A window-related event. /// A window-related event.
#[derive(PartialEq, Clone, Debug)] #[derive(PartialEq, Eq, Clone, Debug)]
pub enum Event { pub enum Event {
/// A window was moved. /// A window was moved.
Moved { Moved {