Skip to content

Commit

Permalink
Fix overscoped_allow
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Nov 20, 2024
1 parent 017f525 commit b7ceef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/restriction/overscoped_allow/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ fn local_path_from_span(cx: &LateContext<'_>, span: Span) -> Option<PathBuf> {
fn is_extern_crate_test(cx: &LateContext<'_>, hir_id: HirId) -> bool {
let node = cx.tcx.hir_node(hir_id);
if let Node::Item(Item {
kind: ItemKind::ExternCrate(None),
ident,
kind: ItemKind::ExternCrate(None),
..
}) = node
{
Expand Down

0 comments on commit b7ceef4

Please sign in to comment.