Skip to content

Commit

Permalink
Take care of another clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sonmarcho committed Nov 29, 2023
1 parent fb8fbd1 commit 3bb64bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charon/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ pub fn translate(sess: &Session, tcx: TyCtxt, internal: &mut CharonCallbacks) ->
// - compute the order in which to extract the definitions
// - find the recursive definitions
// - group the mutually recursive definitions
let ordered_decls = reorder_decls::reorder_declarations(&ctx)?;
let ordered_decls = reorder_decls::reorder_declarations(&ctx);

//
// =================
Expand Down
4 changes: 2 additions & 2 deletions charon/src/reorder_decls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ impl Deps {
}
}

pub fn reorder_declarations(ctx: &TransCtx) -> Result<DeclarationsGroups, ()> {
pub fn reorder_declarations(ctx: &TransCtx) -> DeclarationsGroups {
trace!();

// Step 1: explore the declarations to build the graph
Expand Down Expand Up @@ -693,7 +693,7 @@ pub fn reorder_declarations(ctx: &TransCtx) -> Result<DeclarationsGroups, ()> {

trace!("{:?}", reordered_decls);

Ok(reordered_decls)
reordered_decls
}

#[cfg(test)]
Expand Down

0 comments on commit 3bb64bd

Please sign in to comment.