From 0a95f492baa87a041b9d07b0b0ca22b6a0b402c2 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 20 Aug 2024 16:11:34 -0700 Subject: [PATCH] run: Run is Copy --- src/run.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/run.rs b/src/run.rs index 1f6123a..ae0836a 100644 --- a/src/run.rs +++ b/src/run.rs @@ -1,7 +1,7 @@ use crate::timer::{TimerFixed,Realtime,Paused,Unpaused}; use crate::integer::Time; -#[derive(Clone,Debug)] +#[derive(Clone,Copy,Debug)] pub enum FlagReason{ Anticheat, StyleChange, @@ -42,14 +42,14 @@ impl std::fmt::Display for Error{ } impl std::error::Error for Error{} -#[derive(Clone,Debug)] +#[derive(Clone,Copy,Debug)] enum RunState{ Created, Started{timer:TimerFixed}, Finished{timer:TimerFixed}, } -#[derive(Clone,Debug)] +#[derive(Clone,Copy,Debug)] pub struct Run{ state:RunState, flagged:Option,