Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Homescu <[email protected]>
  • Loading branch information
spernsteiner and ahomescu authored Apr 3, 2024
1 parent 5c7182c commit 7cb46d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2rust-analyze/src/analyze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ fn run(tcx: TyCtxt) {
ptrs.push(ptr);
format!("{{{}}}", ptr)
});
if ptrs.len() == 0 {
if ptrs.is_empty() {
continue;
}
// TODO: emit addr_of when it's nontrivial
Expand Down

0 comments on commit 7cb46d7

Please sign in to comment.