mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
run cargo fmt
This commit is contained in:
parent
e17dd4efa9
commit
b5d82524b4
@ -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…
Reference in New Issue
Block a user