Spam filter performance and accuracy improvements (part 1)

This commit is contained in:
mdecimus
2025-11-28 19:00:04 +01:00
parent 2b614aa536
commit 05ef5a7c10
20 changed files with 604 additions and 1299 deletions

View File

@@ -463,6 +463,14 @@ impl ParseValue for i32 {
}
}
impl ParseValue for f32 {
fn parse_value(value: &str) -> super::Result<Self> {
value
.parse()
.map_err(|_| format!("Invalid floating point value {:?}.", value))
}
}
impl ParseValue for IpAddr {
fn parse_value(value: &str) -> super::Result<Self> {
value