Skip to content

Commit

Permalink
Make linter happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbolliger committed Jun 1, 2021
1 parent adcb89f commit da1251c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stainless_extraction/src/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub fn uint_bit_width(int_ty: &UintTy, tcx: TyCtxt<'_>) -> u64 {
int_ty.bit_width().unwrap_or_else(|| pointer_bit_width(tcx))
}

pub fn is_mut_ref<'tcx>(ty: Ty<'tcx>) -> bool {
pub fn is_mut_ref(ty: Ty) -> bool {
matches!(ty.ref_mutability(), Some(Mutability::Mut))
}

Expand Down

0 comments on commit da1251c

Please sign in to comment.