Skip to content

Commit

Permalink
clippy...
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Jan 27, 2025
1 parent 6e76bcb commit a306990
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/html/pages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl CategoriesPanelCtx {
true,
)
})
.filter(|(_name, node)| !node[0].is_internal(&ctx.ctx))
.filter(|(_name, node)| !node[0].is_internal(ctx.ctx))
.count();

let mut categories = ctx
Expand Down Expand Up @@ -146,7 +146,7 @@ impl CategoriesPanelCtx {
true,
)
})
.filter(|(_name, node)| !node[0].is_internal(&ctx.ctx))
.filter(|(_name, node)| !node[0].is_internal(ctx.ctx))
.count();

let (_, nodes) = ctx.ctx.doc_nodes.first().unwrap();
Expand Down
2 changes: 1 addition & 1 deletion src/html/symbols/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl SymbolGroupCtx {
tags.insert(Tag::Permissions(permissions.into_iter().collect()));
}

if doc_nodes[0].is_internal(&ctx.ctx) {
if doc_nodes[0].is_internal(ctx.ctx) {
tags.insert(Tag::Private);
}

Expand Down
2 changes: 1 addition & 1 deletion src/html/symbols/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn get_namespace_section_render_ctx(
let nodes = grouped_nodes
.into_iter()
.filter_map(|(name, nodes)| {
if nodes[0].is_internal(&ctx.ctx) {
if nodes[0].is_internal(ctx.ctx) {
None
} else {
Some(NamespaceNodeCtx::new(ctx, name, nodes))
Expand Down

0 comments on commit a306990

Please sign in to comment.