diff --git a/src/server/api.rs b/src/server/api.rs index 04c3439..b8e3697 100644 --- a/src/server/api.rs +++ b/src/server/api.rs @@ -31,7 +31,7 @@ fn parse_remote_info(remote_info: &str) -> Result { let mut remote_address = String::from(remote_info); if remote_address.contains(":") { let last_colon_index = remote_address.rfind(":").unwrap(); - let port = remote_address.split_off(last_colon_index); + let _port = remote_address.split_off(last_colon_index); if remote_address.starts_with("[") && remote_address.ends_with("]") { remote_address = String::from(remote_address.trim_matches(|c| c == '[' || c == ']')) }