Few minor changes, clippy fixes, and test fixes

This commit is contained in:
microproofs
2024-08-03 01:43:43 -04:00
committed by Kasey
parent 4cf81a19b1
commit 8a461d5bd5
5 changed files with 323 additions and 263 deletions

View File

@@ -361,21 +361,21 @@ pub fn find_introduced_variables(air_tree: &AirTree) -> Vec<String> {
AirTree::PairGuard {
fst_name, snd_name, ..
} => fst_name
.into_iter()
.iter()
.cloned()
.chain(snd_name.into_iter().cloned())
.chain(snd_name.iter().cloned())
.collect_vec(),
AirTree::PairAccessor { fst, snd, .. } => fst
.into_iter()
.iter()
.cloned()
.chain(snd.into_iter().cloned())
.chain(snd.iter().cloned())
.collect_vec(),
AirTree::PairClause {
fst_name, snd_name, ..
} => fst_name
.into_iter()
.iter()
.cloned()
.chain(snd_name.into_iter().cloned())
.chain(snd_name.iter().cloned())
.collect_vec(),
AirTree::Fn { params, .. } => params.to_vec(),
AirTree::ListAccessor { names, .. } => names.clone(),