Skip to content

Commit

Permalink
No more need for borrow call
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 4, 2021
1 parent ad30c39 commit e428799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/passes/doc_test_lints.rs
Expand Up @@ -53,7 +53,7 @@ impl crate::doctest::Tester for Tests {
}

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!(
*item.kind,
clean::StructFieldItem(_)
Expand Down

0 comments on commit e428799

Please sign in to comment.