1
Fork 0

Merge pull request #2202 from topecongiro/format

Run `cargo fmt`
This commit is contained in:
Oliver Schneider 2017-11-06 08:35:52 +01:00 committed by GitHub
commit ed589761e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
63 changed files with 804 additions and 613 deletions

View file

@ -119,8 +119,8 @@ fn check_trait_items(cx: &LateContext, visited_trait: &Item, trait_items: &[Trai
.iter()
.flat_map(|&i| cx.tcx.associated_items(i))
.any(|i| {
i.kind == ty::AssociatedKind::Method && i.method_has_self_argument && i.name == "is_empty" &&
cx.tcx.fn_sig(i.def_id).inputs().skip_binder().len() == 1
i.kind == ty::AssociatedKind::Method && i.method_has_self_argument && i.name == "is_empty"
&& cx.tcx.fn_sig(i.def_id).inputs().skip_binder().len() == 1
});
if !is_empty_method_found {