fix: tests, clippy lints

This commit is contained in:
ThetaDev 2023-10-08 01:04:52 +02:00
parent e247b0c5d9
commit 1ec1666d77
4 changed files with 24 additions and 24 deletions

View file

@ -134,12 +134,16 @@ where
if c.is_ascii_digit() {
buf.push(c);
} else if !buf.is_empty() {
buf.parse::<F>().map_or((), |n| numbers.push(n));
if let Ok(n) = buf.parse::<F>() {
numbers.push(n);
}
buf.clear();
}
}
if !buf.is_empty() {
buf.parse::<F>().map_or((), |n| numbers.push(n));
if let Ok(n) = buf.parse::<F>() {
numbers.push(n);
}
}
numbers