Merge pull request #87 from InfinityGlitch/master

Fixed clippy lints
This commit is contained in:
PaddiM8 2022-04-30 15:37:07 +02:00 committed by GitHub
commit cc2add15be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()))