refactor: consistency

This commit is contained in:
electria 2026-07-15 23:17:45 -07:00
commit e7a9358bd0
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -115,7 +115,7 @@ impl FromStr for Nodes {
}
ParsingState::ReadingNumber(start_index) => {
nodes.push(Node::Number(
Float::parse_radix(&filtered_string[start_index..i], 10)
Float::parse(&filtered_string[start_index..i])
.map_err(|e| {
Error::NumberParsing(filtered_string[start_index..i].to_owned(), e)
})?