impl Copy for Event (it is a slice, just a ptr and len)

This commit is contained in:
Mike Dilger 2024-03-02 11:40:50 +13:00
parent 8828074e7c
commit acbe1132c7

View File

@ -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> {