Skip to content

Commit 545382d

Browse files
committed
Fix warnings
1 parent 91dab4d commit 545382d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/hir-ty/src/diagnostics/match_check/pat_analysis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ impl<'p> TypeCx for MatchCheckCtx<'p> {
359359
&'a self,
360360
ctor: &'a rustc_pattern_analysis::constructor::Constructor<Self>,
361361
ty: &'a Self::Ty,
362-
) -> impl Iterator<Item = Self::Ty> + ExactSizeIterator + Captures<'a> {
362+
) -> impl ExactSizeIterator<Item = Self::Ty> + Captures<'a> {
363363
let single = |ty| smallvec![ty];
364364
let tys: SmallVec<[_; 2]> = match ctor {
365365
Struct | Variant(_) | UnionField => match ty.kind(Interner) {

crates/ide-diagnostics/src/handlers/missing_fields.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use syntax::{
1313
ast::{self, make},
1414
AstNode, SyntaxNode, SyntaxNodePtr,
1515
};
16-
use text_edit::{TextEdit, TextRange};
16+
use text_edit::TextEdit;
1717

1818
use crate::{fix, Diagnostic, DiagnosticCode, DiagnosticsContext};
1919

0 commit comments

Comments
 (0)