Skip to content

Commit

Permalink
Clippy thing
Browse files Browse the repository at this point in the history
  • Loading branch information
neunenak committed Nov 22, 2023
1 parent 9d534fb commit 26da00b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ impl<'src> Analyzer<'src> {
root: &Path,
ast_table: &'a HashMap<PathBuf, Ast<'src>>,
) -> Vec<&'a Item<'src>> {
let root_ast = ast_table.get(root).unwrap();

fn rec<'a, 'src>(
ast: &'a Ast<'src>,
table: &'a HashMap<PathBuf, Ast<'src>>,
Expand All @@ -38,6 +36,7 @@ impl<'src> Analyzer<'src> {
}
}

let root_ast = ast_table.get(root).unwrap();
let mut items = Vec::new();
rec(root_ast, ast_table, &mut items);

Expand Down

0 comments on commit 26da00b

Please sign in to comment.