Исправлены clippy-замечания под gate -D warnings

This commit is contained in:
2026-05-12 12:19:47 +05:00
parent d114784d7d
commit bff9c50a6b
6 changed files with 43 additions and 39 deletions
+6 -6
View File
@@ -150,12 +150,12 @@ fn docker_events_loop(cfg: &Config, state: &Arc<Mutex<LastActionState>>) -> anyh
fn wait_for_interface(cfg: &Config, container_name: &str, timeout_secs: u64) -> bool {
let start = Instant::now();
while start.elapsed() < Duration::from_secs(timeout_secs.max(1)) {
if let Ok(target) = docker::discover_target(cfg) {
if target.container_name == container_name {
let transport = build_transport(target.container_pid, &target.container_name);
if iface::detect_interface_with_transport(cfg, transport.as_ref()).is_ok() {
return true;
}
if let Ok(target) = docker::discover_target(cfg)
&& target.container_name == container_name
{
let transport = build_transport(target.container_pid, &target.container_name);
if iface::detect_interface_with_transport(cfg, transport.as_ref()).is_ok() {
return true;
}
}