From 24ee3bb140ba6546f1302292d4a1815540a901ea Mon Sep 17 00:00:00 2001 From: Red Bear OS Date: Sun, 26 Jul 2026 20:53:45 +0900 Subject: [PATCH] dhcpd: fix String -> &str type mismatch in dhcp() call The dhcp() function takes iface: &str but main() was passing an owned String. Add & to coerce to &str. Fixes E0308 'mismatched types' during canonical build. --- dhcpd/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhcpd/src/main.rs b/dhcpd/src/main.rs index 5ffdc64e5d..e682a44ee4 100644 --- a/dhcpd/src/main.rs +++ b/dhcpd/src/main.rs @@ -395,7 +395,7 @@ fn main() { std::thread::sleep(std::time::Duration::from_millis(250)); } - if let Err(err) = dhcp(iface, verbose) { + if let Err(err) = dhcp(&iface, verbose) { eprintln!("dhcpd: {err}"); process::exit(1); }