Skip to content

Commit

Permalink
Merge pull request #162 from akihiro17/snake-case-warnings
Browse files Browse the repository at this point in the history
Fix `handle_existing_function`
  • Loading branch information
Ph0enixKM authored Jun 15, 2024
2 parents 45b987a + f1057a6 commit f70827d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/modules/function/declaration_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pub fn skip_function_body(meta: &mut ParserMetadata) -> (usize, usize, bool) {

pub fn handle_existing_function(meta: &mut ParserMetadata, tok: Option<Token>) -> Result<(), Failure> {
let name = tok.as_ref().unwrap().word.clone();
handle_identifier_name(meta, &name, tok.clone())?;
if meta.get_fun_declaration(&name).is_some() {
return error!(meta, tok, format!("Function '{}' already exists", name))
}
Expand Down

0 comments on commit f70827d

Please sign in to comment.