Skip to content

Commit

Permalink
run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Mar 23, 2019
1 parent e17dd4e commit b5d8252
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions clippy_lints/src/len_zero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b5d8252

Please sign in to comment.