From ede8cd4acbfcb5d380d4a075b587f06a0f5ce194 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Sun, 11 Aug 2024 15:55:21 +0200 Subject: [PATCH] include size_of for older rust versions --- lan-mouse-proto/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lan-mouse-proto/src/lib.rs b/lan-mouse-proto/src/lib.rs index f6f265e..d4aa5bf 100644 --- a/lan-mouse-proto/src/lib.rs +++ b/lan-mouse-proto/src/lib.rs @@ -1,7 +1,10 @@ use input_event::{Event as InputEvent, KeyboardEvent, PointerEvent}; use num_enum::{IntoPrimitive, TryFromPrimitive, TryFromPrimitiveError}; use paste::paste; -use std::fmt::{Debug, Display}; +use std::{ + fmt::{Debug, Display}, + mem::size_of, +}; use thiserror::Error; /// defines the maximum size an encoded event can take up