From c124f9fff690a42ea5fb490e4c7e512ba8448951 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Thu, 13 Jun 2024 16:54:35 +0200 Subject: cargo update + `time` update, fix for `Instant` deprecation --- src/storage.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/storage.rs') diff --git a/src/storage.rs b/src/storage.rs index 52c2e60..90ff1b4 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -19,7 +19,7 @@ pub struct Device { pub mac: MacAddress, pub broadcast_addr: String, pub ip: Option, - pub times: Option>, + pub times: Option>, } impl Device { @@ -59,6 +59,8 @@ impl Device { } } +// Dead Code allowed because of use in OpenApi Macro (not really dead code) +#[allow(dead_code)] #[derive(ToSchema)] #[schema(as = Device)] pub struct DeviceSchema { -- cgit v1.2.3