Derive Default implementations wherever possible
This commit is contained in:
parent
f53bee4225
commit
54239c55ae
3 changed files with 10 additions and 21 deletions
|
|
@ -882,16 +882,15 @@ mod grid {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub enum Interaction {
|
||||
#[default]
|
||||
None,
|
||||
Drawing,
|
||||
Erasing,
|
||||
Panning { translation: Vector, start: Point },
|
||||
}
|
||||
|
||||
impl Default for Interaction {
|
||||
fn default() -> Self {
|
||||
Self::None
|
||||
}
|
||||
Panning {
|
||||
translation: Vector,
|
||||
start: Point,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue