Fixed clippy lints

This commit is contained in:
InfinityGlitch 2022-04-30 15:21:09 +02:00
parent 7154d38eb3
commit 45208d6ba4
2 changed files with 2 additions and 2 deletions

View File

@ -353,7 +353,7 @@ fn invert_fn_call(
let mut parameters_iter = parameters.iter();
for argument in arguments {
symbol_table.insert(Stmt::VarDecl(
Identifier::from_full_name(&parameters_iter.next().unwrap().to_string()),
Identifier::from_full_name(parameters_iter.next().unwrap()),
Box::new(argument.clone()),
));
}

View File

@ -728,7 +728,7 @@ fn skip_newlines(context: &mut Context) {
fn string_to_num(value: &str) -> Result<f64, KalkError> {
let base = get_base(value)?;
if let Some(result) = crate::radix::parse_float_radix(&value.replace(" ", ""), base) {
if let Some(result) = crate::radix::parse_float_radix(&value.replace(' ', ""), base) {
Ok(result)
} else {
Err(KalkError::InvalidNumberLiteral(value.into()))