chore(data): derive Copy on AnimSpeed
AnimSpeed is a fieldless enum; adding Copy lets `scaled_duration` and other helpers take it by value through `&AnimSpeed` deref without requiring a `.clone()` at every call site. Prerequisite for the upcoming animation token-routing work.
This commit is contained in:
@@ -15,7 +15,7 @@ const APP_DIR_NAME: &str = "solitaire_quest";
|
|||||||
const SETTINGS_FILE_NAME: &str = "settings.json";
|
const SETTINGS_FILE_NAME: &str = "settings.json";
|
||||||
|
|
||||||
/// Animation playback speed for card transitions.
|
/// Animation playback speed for card transitions.
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, Default)]
|
||||||
pub enum AnimSpeed {
|
pub enum AnimSpeed {
|
||||||
/// Standard animation timing (default).
|
/// Standard animation timing (default).
|
||||||
#[default]
|
#[default]
|
||||||
|
|||||||
Reference in New Issue
Block a user