Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ozdemir committed Jan 4, 2024
1 parent 2f3dca0 commit a6b50cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/front/c/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ impl CGen {
}

/// Returns whether this was a builtin, and thus has been handled.
fn maybe_handle_builtins(&mut self, name: &String, args: &Vec<CTerm>) -> Option<CTerm> {
fn maybe_handle_builtins(&mut self, name: &String, args: &[CTerm]) -> Option<CTerm> {
if self.sv_functions && (name == "__VERIFIER_assert" || name == "__VERIFIER_assume") {
assert!(args.len() == 1);
let bool_arg = cast_to_bool(args[0].clone());
Expand All @@ -1241,7 +1241,7 @@ impl CGen {
}
}

fn fn_call(&mut self, name: &String, arg_sorts: &Vec<Sort>, rets: &Sort) {
fn fn_call(&mut self, name: &String, arg_sorts: &[Sort], rets: &Sort) {
debug!("Call: {}", name);

// Get function types
Expand Down
2 changes: 1 addition & 1 deletion src/front/c/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl CTermData {
pub fn term(&self, ctx: &CirCtx) -> Term {
let ts = self.terms(ctx);
assert!(ts.len() == 1);
ts.get(0).unwrap().clone()
ts.first().unwrap().clone()
}

pub fn simple_term(&self) -> Term {
Expand Down

0 comments on commit a6b50cc

Please sign in to comment.