run cargo fmt

This commit is contained in:
Matthias Krüger 2019-03-23 23:39:58 +01:00
parent e17dd4efa9
commit b5d82524b4

View file

@ -191,10 +191,7 @@ fn check_impl_items(cx: &LateContext<'_, '_>, item: &Item, impl_items: &[ImplIte
}
let is_empty = if let Some(is_empty) = impl_items.iter().find(|i| is_named_self(cx, i, "is_empty")) {
if cx
.access_levels
.is_exported(is_empty.id.hir_id)
{
if cx.access_levels.is_exported(is_empty.id.hir_id) {
return;
} else {
"a private"