From 14737708e1da582762bd59051fcb0734450d97a7 Mon Sep 17 00:00:00 2001 From: Francesco Date: Sun, 28 Jul 2024 07:15:22 +0200 Subject: [PATCH] clippy --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 6e8fed7..d39b908 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -74,7 +74,7 @@ pub fn wait(sleep: &mut dyn sleeper::Sleeper, config: &Config, on_timeout: &mut for host in config.hosts.trim().split(',') { info!("Checking availability of host [{}]", host); while !port_check::is_port_reachable_with_timeout( - &host.trim().to_string(), + host.trim(), Duration::from_secs(config.tcp_connection_timeout), ) { info!("Host [{}] not yet available...", host);