Resolve clippy warnings
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user