mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
run cargo fmt
This commit is contained in:
parent
e17dd4efa9
commit
b5d82524b4
1 changed files with 1 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue