summaryrefslogtreecommitdiff
path: root/src/storage.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2024-06-13 16:54:35 +0200
committerfxqnlr <[email protected]>2024-06-13 16:54:35 +0200
commitc124f9fff690a42ea5fb490e4c7e512ba8448951 (patch)
treef17edd2042d2dc713f3dd6b0bdabbbb2444fc863 /src/storage.rs
parent04cd0aee6d000073e49b80a530a40cdb176f7f10 (diff)
downloadwebol-c124f9fff690a42ea5fb490e4c7e512ba8448951.tar
webol-c124f9fff690a42ea5fb490e4c7e512ba8448951.tar.gz
webol-c124f9fff690a42ea5fb490e4c7e512ba8448951.zip
cargo update + `time` update, fix for `Instant` deprecation
Diffstat (limited to 'src/storage.rs')
-rw-r--r--src/storage.rs4
1 files changed, 3 insertions, 1 deletions
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 {
19 pub mac: MacAddress, 19 pub mac: MacAddress,
20 pub broadcast_addr: String, 20 pub broadcast_addr: String,
21 pub ip: Option<IpNetwork>, 21 pub ip: Option<IpNetwork>,
22 pub times: Option<Vec<i64>>, 22 pub times: Option<Vec<u64>>,
23} 23}
24 24
25impl Device { 25impl Device {
@@ -59,6 +59,8 @@ impl Device {
59 } 59 }
60} 60}
61 61
62// Dead Code allowed because of use in OpenApi Macro (not really dead code)
63#[allow(dead_code)]
62#[derive(ToSchema)] 64#[derive(ToSchema)]
63#[schema(as = Device)] 65#[schema(as = Device)]
64pub struct DeviceSchema { 66pub struct DeviceSchema {