Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MinerSebas committed May 8, 2024
1 parent 7b81aa9 commit 8f550a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mixed_ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl<'tcx> MixedTy<'tcx> {
};

// Fix for aliases
if hir_generics.len() == 0 && middle_generics.len() != 0 {
if hir_generics.is_empty() && !middle_generics.is_empty() {
hir_generics = std::iter::repeat(Either::Right(self.span()))
.take(middle_generics.len())
.collect();
Expand Down

0 comments on commit 8f550a5

Please sign in to comment.