Skip to content

Commit f439a24

Browse files
Fix linter issue
1 parent 6ea1fbb commit f439a24

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/librustc_typeck/check/demand.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
115115
Def::Method(def_id) => {
116116
match self.tcx.item_type(def_id).sty {
117117
ty::TypeVariants::TyFnDef(_, _, fty) => {
118-
fty.sig.skip_binder().inputs.len() == 1
118+
fty.sig.skip_binder().inputs().len() == 1
119119
}
120120
_ => false,
121121
}

src/librustc_typeck/check/method/probe.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ use rustc::ty::subst::{Subst, Substs};
2020
use rustc::traits::{self, ObligationCause};
2121
use rustc::ty::{self, Ty, ToPolyTraitRef, TraitRef, TypeFoldable};
2222
use rustc::infer::type_variable::TypeVariableOrigin;
23-
use rustc::util::nodemap::{FnvHashSet, FxHashSet};
24-
use rustc::infer::{self, InferOk, TypeOrigin};
23+
use rustc::util::nodemap::FxHashSet;
24+
use rustc::infer::{self, InferOk};
2525
use syntax::ast;
2626
use syntax_pos::Span;
2727
use rustc::hir;
@@ -182,7 +182,8 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
182182
method_names
183183
.iter()
184184
.flat_map(|&method_name| {
185-
match self.probe_for_name(span, mode, method_name, IsSuggestion(true), self_ty, scope_expr_id) {
185+
match self.probe_for_name(span, mode, method_name, IsSuggestion(true), self_ty,
186+
scope_expr_id) {
186187
Ok(pick) => Some(pick.item),
187188
Err(_) => None,
188189
}

0 commit comments

Comments
 (0)