Skip to content

Commit

Permalink
Merge pull request bottlerocket-os#3599 from sam-berning/clippy-wants…
Browse files Browse the repository at this point in the history
…-a-char

chore: use char for single char replace pattern
  • Loading branch information
sam-berning authored Nov 16, 2023
2 parents c96340a + e2957f8 commit 26f1cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/api/netdog/src/cli/generate_hostname.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub(crate) async fn run() -> Result<()> {
hostname
}
// If no hostname has been determined we return the IP address of the host, replacing invalid ipv6 chars.
.unwrap_or(ip_string.replace(":", "-"));
.unwrap_or(ip_string.replace(':', "-"));

// sundog expects JSON-serialized output
print_json(hostname)
Expand Down

0 comments on commit 26f1cc9

Please sign in to comment.