1
Fork 0

Run rustfmt

This commit is contained in:
Oliver Schneider 2017-05-03 14:13:50 +02:00
parent 5295fe4792
commit 1522a4913f
6 changed files with 85 additions and 103 deletions

View file

@ -199,7 +199,8 @@ fn has_is_empty(cx: &LateContext, expr: &Expr) -> bool {
/// Check the inherent impl's items for an `is_empty(self)` method.
fn has_is_empty_impl(cx: &LateContext, id: DefId) -> bool {
cx.tcx.inherent_impls(id)
cx.tcx
.inherent_impls(id)
.iter()
.any(|imp| cx.tcx.associated_items(*imp).any(|item| is_is_empty(cx, &item)))
}