Skip to content

Commit

Permalink
address clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jcornaz committed Nov 8, 2023
1 parent 8070791 commit 06d84bf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/animation/dto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,15 @@ pub(super) struct AnimationDto {
frames: Vec<FrameDto>,
}

#[derive(Serialize, Deserialize)]
#[derive(Serialize, Deserialize, Default)]
enum ModeDto {
#[default]
Repeat,
RepeatFrom(usize),
Once,
PingPong,
}

impl Default for ModeDto {
fn default() -> Self {
ModeDto::Repeat
}
}

#[derive(Serialize)]
struct FrameDto {
index: usize,
Expand Down

0 comments on commit 06d84bf

Please sign in to comment.