--- a/cmds/fleet/src/cmds/info.rs +++ b/cmds/fleet/src/cmds/info.rs @@ -38,7 +38,7 @@ if !tagged.is_empty() { let tags: Vec = config.config_attr(&host, "tags").await?; for tag in tagged { - if !tags.contains(&tag) { + if !tags.contains(tag) { continue 'host; } } --- a/cmds/fleet/src/keys.rs +++ b/cmds/fleet/src/keys.rs @@ -50,7 +50,7 @@ .filter(|(_, host)| !host.encryption_key.is_empty()) .map(|(n, _)| n) { - if !host_names.contains(&hostname.to_owned()) { + if !host_names.contains(hostname) { out.push(hostname.to_owned()) } } --- a/crates/nixlike/src/to_string.rs +++ b/crates/nixlike/src/to_string.rs @@ -5,7 +5,7 @@ }; fn write_nix_obj_key_buf(k: &str, v: &Value, out: &mut PrintItems) { - if k.contains(".") { + if k.contains('.') { out.push_str("\""); out.push_str(k); out.push_str("\""); @@ -39,7 +39,7 @@ .replace('\n', "\\n") .replace('\t', "\\t") .replace('\r', "\\r") - .replace("$", "\\$") + .replace('$', "\\$") )), Value::Array(a) => { if a.is_empty() {