Fix latest clippy lints
This commit is contained in:
parent
4425839aa4
commit
b0705d2f4c
6 changed files with 7 additions and 7 deletions
|
|
@ -6,7 +6,7 @@ use super::{KeyCode, Modifiers};
|
|||
/// additional events, feel free to [open an issue] and share your use case!_
|
||||
///
|
||||
/// [open an issue]: https://github.com/iced-rs/iced/issues
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum Event {
|
||||
/// A keyboard key was pressed.
|
||||
KeyPressed {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/// 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 {
|
||||
/// Fill all the remaining space
|
||||
Fill,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use crate::{Padding, Vector};
|
|||
use std::f32;
|
||||
|
||||
/// An amount of space in 2 dimensions.
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct Size<T = f32> {
|
||||
/// The width.
|
||||
pub width: T,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/// A 2D vector.
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct Vector<T = f32> {
|
||||
/// The X component of the [`Vector`]
|
||||
pub x: T,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue