Drop redundant use ... as ... aliases in scanner imports

The aliases re-encoded the module path into a name that no longer
matched the source identifier (e.g. `use super::finder as mdns`). Use
the actual module names at call sites; in the two web_server handlers
the local `status` fn collides with the module, so the single call site
uses the fully-qualified path instead.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-30 09:52:40 -04:00
co-authored by Claude Opus 4.7
parent c12e700c27
commit f9ad90d015
4 changed files with 11 additions and 15 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
use super::finder;
use super::status as arp_scanner_status;
use super::status;
use crate::db;
use crate::events;
use crate::settings::get_settings;
@@ -9,7 +9,7 @@ use tokio::time::{Duration, sleep};
pub async fn scan() -> Result<(), Box<dyn std::error::Error>> {
loop {
arp_scanner_status::set_running();
status::set_running();
// Find online devices via ARP
let devices = finder::find(get_settings().networking.interface.clone()).await?;
@@ -59,7 +59,7 @@ pub async fn scan() -> Result<(), Box<dyn std::error::Error>> {
"Scan finished. Sleeping for {}",
get_settings().arp_scanner.wait_between_scans
);
arp_scanner_status::set_waiting(next_scan_at);
status::set_waiting(next_scan_at);
sleep(wait).await;
}
}