From acbe1132c70151292c749eac8eef71753de934d6 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Sat, 2 Mar 2024 11:40:50 +1300 Subject: [PATCH] impl Copy for Event (it is a slice, just a ptr and len) --- chorus-lib/src/types/event/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chorus-lib/src/types/event/mod.rs b/chorus-lib/src/types/event/mod.rs index 593a950..a7bbac2 100644 --- a/chorus-lib/src/types/event/mod.rs +++ b/chorus-lib/src/types/event/mod.rs @@ -21,7 +21,7 @@ use json_event::parse_json_event; * 144+T+4+C <--- beginning of region beyond the event */ -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Copy, Clone, PartialEq)] pub struct Event<'a>(&'a [u8]); impl<'a> Event<'a> {