if you let AI add Deserialize for everything Serialize you will have to fight this

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
lda
2026-05-03 03:58:04 +07:00
co-authored by Copilot
Verified
parent f5ed1ab8f6
commit 64cf5f9e69
7 changed files with 39 additions and 4 deletions
+5 -3
View File
@@ -2,10 +2,12 @@ use std::path::PathBuf;
mod leases;
#[allow(deprecated)]
pub use leases::enrich_leases_with_nud_state;
pub use leases::{
enrich_leases_with_nud_state, parse_dhcp_lease_line, read_dhcp_leases,
read_dhcp_leases_from_path, read_dhcp_leases_with_names,
read_dhcp_leases_with_names_from_paths,
parse_dhcp_lease_line, read_dhcp_leases, read_dhcp_leases_from_path,
read_dhcp_leases_with_names, read_dhcp_leases_with_names_from_paths,
};
const DEFAULT_DHCP_LEASES: &str = "/tmp/dhcp.leases";
+1
View File
@@ -89,6 +89,7 @@ pub async fn read_dhcp_leases_with_names_from_paths(
}
/// Enrich DHCP leases with the best currently known neighbor state per IP.
#[deprecated(note = "use inventory")]
pub async fn enrich_leases_with_nud_state(leases: Vec<DhcpLease>) -> Vec<DhcpLeaseWithState> {
let ips: Vec<IpAddr> = leases.iter().map(|l| l.ip).collect();
let mut map: std::collections::HashMap<IpAddr, wakey_core::NeighborState> =