Fix warnings
This commit is contained in:
parent
91dab4d720
commit
545382db25
@ -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) {
|
||||
|
@ -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};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user