fix: tests, clippy lints
This commit is contained in:
parent
e247b0c5d9
commit
1ec1666d77
4 changed files with 24 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
Reference in a new issue