Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dfellis committed Jan 6, 2025
1 parent b23a23f commit bd33a72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion alan_compiler/src/lntojs/typen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ pub fn ctype_to_jtype(
deps = res.1;
Ok(("".to_string(), deps))
}
CType::Fail(m) => CType::fail(&m),
CType::Fail(m) => CType::fail(m),
otherwise => CType::fail(&format!("Lower stage of the compiler received unresolved algebraic type {}, cannot deal with it here. Please report this error.", Arc::new(otherwise.clone()).to_functional_string())),
}
}
Expand Down
4 changes: 1 addition & 3 deletions alan_compiler/src/program/ctype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1386,9 +1386,7 @@ impl CType {
for (a, i) in arg_type_vec {
let mut arg = vec![a];
let mut input = vec![i];
while !arg.is_empty() {
let a = arg.pop().unwrap();
let i = input.pop().unwrap();
while let (Some(a), Some(i)) = (arg.pop(), input.pop()) {
match (&*a, &*i) {
(CType::Void, CType::Void) => { /* Do nothing */ }
(CType::Infer(s1, _), CType::Infer(s2, _)) if s1 == s2 => {
Expand Down

0 comments on commit bd33a72

Please sign in to comment.