No more need for borrow call

This commit is contained in:
Guillaume Gomez 2021-02-23 21:53:28 +01:00
parent ad30c39918
commit e4287992a7
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ impl crate::doctest::Tester for Tests {
} }
crate fn should_have_doc_example(cx: &DocContext<'_>, item: &clean::Item) -> bool { crate fn should_have_doc_example(cx: &DocContext<'_>, item: &clean::Item) -> bool {
if !cx.renderinfo.borrow().access_levels.is_public(item.def_id) if !cx.renderinfo.access_levels.is_public(item.def_id)
|| matches!( || matches!(
*item.kind, *item.kind,
clean::StructFieldItem(_) clean::StructFieldItem(_)