refactor: consistency
This commit is contained in:
parent
cc88a4240a
commit
e7a9358bd0
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ impl FromStr for Nodes {
|
||||||
}
|
}
|
||||||
ParsingState::ReadingNumber(start_index) => {
|
ParsingState::ReadingNumber(start_index) => {
|
||||||
nodes.push(Node::Number(
|
nodes.push(Node::Number(
|
||||||
Float::parse_radix(&filtered_string[start_index..i], 10)
|
Float::parse(&filtered_string[start_index..i])
|
||||||
.map_err(|e| {
|
.map_err(|e| {
|
||||||
Error::NumberParsing(filtered_string[start_index..i].to_owned(), e)
|
Error::NumberParsing(filtered_string[start_index..i].to_owned(), e)
|
||||||
})?
|
})?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue