all the clippy fixes

This commit is contained in:
Folkert 2021-01-01 00:40:41 +01:00
parent 94a33c91dc
commit 754521c4c3
14 changed files with 93 additions and 120 deletions

View file

@ -310,12 +310,11 @@ pub fn canonicalize_expr<'a>(
can_elems.push(can_expr);
}
let mut output = Output::default();
output.references = references;
// A list literal is never a tail call!
output.tail_call = None;
let output = Output {
references,
tail_call: None,
..Default::default()
};
(
List {
@ -893,10 +892,7 @@ pub fn local_successors<'a>(
answer
}
fn call_successors<'a>(
call_symbol: Symbol,
closures: &'a MutMap<Symbol, References>,
) -> ImSet<Symbol> {
fn call_successors(call_symbol: Symbol, closures: &MutMap<Symbol, References>) -> ImSet<Symbol> {
let mut answer = im_rc::hashset::HashSet::default();
let mut seen = MutSet::default();
let mut queue = vec![call_symbol];