Spam filter performance and accuracy improvements (part 1)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user