Исправлены clippy-замечания под gate -D warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user