chore: Cleanup warnings and unused functions
All checks were successful
Run Check Script / check (pull_request) Successful in 1m20s
All checks were successful
Run Check Script / check (pull_request) Successful in 1m20s
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
// dnsmasq.rs
|
||||
use crate::modules::dhcp::DhcpError;
|
||||
use log::{debug, info};
|
||||
use opnsense_config_xml::dnsmasq::{DhcpBoot, DhcpOptions, DnsMasq};
|
||||
use opnsense_config_xml::{MaybeString, StaticMap};
|
||||
use std::net::Ipv4Addr;
|
||||
use std::sync::Arc;
|
||||
use uuid::Uuid;
|
||||
|
||||
use opnsense_config_xml::OPNsense;
|
||||
|
||||
@@ -49,13 +47,6 @@ impl<'a> DhcpConfigDnsMasq<'a> {
|
||||
.1
|
||||
}
|
||||
|
||||
fn dnsmasq(&mut self) -> &mut DnsMasq {
|
||||
self.opnsense
|
||||
.dnsmasq
|
||||
.as_mut()
|
||||
.expect("Dnsmasq config should exist. Maybe it is not installed yet")
|
||||
}
|
||||
|
||||
/// Adds a new static DHCP mapping.
|
||||
/// Validates the MAC address and checks for existing mappings to prevent conflicts.
|
||||
pub fn add_static_mapping(
|
||||
|
||||
Reference in New Issue
Block a user