diff --git a/src/mc/ban.rs b/src/mc/ban.rs index 75b22b7..0424a5b 100644 --- a/src/mc/ban.rs +++ b/src/mc/ban.rs @@ -72,7 +72,7 @@ impl BannedIp { } // Parse expiry time, check if it has passed - let expiry = match DateTime::parse_from_str(&expires, "%Y-%m-%d %H:%M:%S %z") { + let expiry = match DateTime::parse_from_str(expires, "%Y-%m-%d %H:%M:%S %z") { Ok(expiry) => expiry, Err(err) => { error!(target: "lazymc", "Failed to parse ban expiry '{}', assuming still banned: {}", expires, err); diff --git a/src/service/ban_reload.rs b/src/service/ban_reload.rs index f8d04fd..d7aa07b 100644 --- a/src/service/ban_reload.rs +++ b/src/service/ban_reload.rs @@ -103,7 +103,7 @@ fn watch(server: &Server, path: &Path) -> bool { // Reload banned IPs if reload { info!(target: "lazymc", "Reloading list of banned IPs..."); - match ban::load(&path) { + match ban::load(path) { Ok(ips) => server.set_banned_ips_blocking(ips), Err(err) => { error!(target: "lazymc", "Failed reload list of banned IPs from {}: {}", ban::FILE, err);