Fix warnings

This commit is contained in:
Lukas Wirth 2024-02-08 14:54:52 +01:00
parent 91dab4d720
commit 545382db25
2 changed files with 2 additions and 2 deletions

View File

@ -359,7 +359,7 @@ fn ctor_sub_tys<'a>(
&'a self,
ctor: &'a rustc_pattern_analysis::constructor::Constructor<Self>,
ty: &'a Self::Ty,
) -> impl Iterator<Item = Self::Ty> + ExactSizeIterator + Captures<'a> {
) -> impl ExactSizeIterator<Item = Self::Ty> + Captures<'a> {
let single = |ty| smallvec![ty];
let tys: SmallVec<[_; 2]> = match ctor {
Struct | Variant(_) | UnionField => match ty.kind(Interner) {

View File

@ -13,7 +13,7 @@
ast::{self, make},
AstNode, SyntaxNode, SyntaxNodePtr,
};
use text_edit::{TextEdit, TextRange};
use text_edit::TextEdit;
use crate::{fix, Diagnostic, DiagnosticCode, DiagnosticsContext};