From 191da7c959baeb30e31196f2c35b0790ea25cbf6 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Tue, 16 Jun 2020 14:56:29 +0800 Subject: [PATCH] Added Copy trait for Milliseconds struct. --- libboard_zynq/src/time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libboard_zynq/src/time.rs b/libboard_zynq/src/time.rs index e012714..b9fc6f3 100644 --- a/libboard_zynq/src/time.rs +++ b/libboard_zynq/src/time.rs @@ -1,4 +1,4 @@ -#[derive(Debug, Clone, PartialEq, PartialOrd)] +#[derive(Debug, Clone, Copy, PartialEq, PartialOrd)] pub struct Milliseconds(pub u64); impl core::ops::Add for Milliseconds {