diff --git a/src/formats.rs b/src/formats.rs index 60ac240..7d5297e 100644 --- a/src/formats.rs +++ b/src/formats.rs @@ -357,7 +357,7 @@ fn check_hostname(mut s: &str) -> Result<(), Box> { .chars() .find(|c| !matches!(c, 'a'..='z' | 'A'..='Z' | '0'..='9' | '-')) { - Err(format!("invalid character {ch:?}"))?; // todo: tell which char is invalid + Err(format!("invalid character {ch:?}"))?; } }