Remove clippy warn.

This commit is contained in:
Edu4rdSHL 2021-05-09 02:07:09 -05:00
parent 4b35130fc3
commit bb8badecf8
No known key found for this signature in database
GPG key ID: 3A574A4009F553E5

View file

@ -1,5 +1,3 @@
use lazy_static;
lazy_static! {
static ref SPECIAL_CHARS: Vec<char> = vec![
'[', ']', '{', '}', '(', ')', '*', '|', ':', '<', '>', '/', '\\', '%', '&', '¿', '?', '¡',
@ -22,6 +20,7 @@ pub fn null_ip_checker(ip: &str) -> String {
}
}
#[allow(clippy::ptr_arg)]
pub fn return_ports_string(ports: &Vec<String>) -> String {
if ports.is_empty() {
String::from("NULL")