Skip to content

Commit f648e70

Browse files
paldepindCopilot
andcommitted
Fix all results of the Clippy lint collection_is_never_read
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8f8a55e2-1e40-48cd-9120-9de95e969ee9
1 parent 89781cf commit f648e70

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

‎Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ similar_names = "allow"
6060
# Additional lints from the `restriction` and `nursery` group
6161
as_pointer_underscore = "warn"
6262
clone_on_ref_ptr = "warn"
63+
collection_is_never_read = "warn"
6364
deref_by_slicing = "warn"
6465
disallowed_script_idents = "warn"
6566
empty_drop = "warn"

‎shared/tree-sitter-extractor/src/generator/ql_gen.rs‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -972,16 +972,8 @@ fn is_predicate_inherited(
972972
#[allow(clippy::too_many_lines)]
973973
pub fn convert_nodes(nodes: &node_types::NodeTypeMap) -> Vec<ql::TopLevel<'_>> {
974974
let mut classes = Vec::new();
975-
let mut token_kinds = BTreeSet::new();
976975
let direct_supertypes = compute_direct_supertypes(nodes);
977976
let exposed_predicate_signatures = compute_exposed_predicate_signatures(nodes);
978-
for (type_name, node) in nodes {
979-
if let node_types::EntryKind::Token { .. } = &node.kind
980-
&& type_name.named
981-
{
982-
token_kinds.insert(&type_name.kind);
983-
}
984-
}
985977

986978
for (type_name, node) in nodes {
987979
match &node.kind {

0 commit comments

Comments
 (0)