Skip to content

Working on new way to store a filter list #85

Working on new way to store a filter list

Working on new way to store a filter list #85

GitHub Actions / clippy failed Nov 11, 2024 in 0s

clippy

1 error, 5 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 5
Note 0
Help 0

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check warning on line 257 in function-grep/src/filter.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `filter`

warning: unused variable: `filter`
   --> function-grep/src/filter.rs:257:23
    |
257 | fn to_filter_type<'a>(filter: &'a dyn Filter) -> FilterType<'a> {
    |                       ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter`

Check warning on line 252 in function-grep/src/filter.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `filter`

warning: unused variable: `filter`
   --> function-grep/src/filter.rs:252:5
    |
252 |     filter: &'a dyn Filter,
    |     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter`

Check warning on line 251 in function-grep/src/filter.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `hash_map`

warning: unused variable: `hash_map`
   --> function-grep/src/filter.rs:251:5
    |
251 |     hash_map: &mut HashMap<String, &'a dyn Filter>,
    |     ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_map`

Check warning on line 135 in function-grep/src/filter/general_filters.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `s`

warning: unused variable: `s`
   --> function-grep/src/filter/general_filters.rs:135:28
    |
135 |     fn parse_filter(&self, s: &str) -> Result<FilterFunction, String> {
    |                            ^ help: if this is intentional, prefix it with an underscore: `_s`
    |
    = note: `#[warn(unused_variables)]` on by default

Check warning on line 177 in function-grep/src/filter.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused macro definition: `default_filters`

warning: unused macro definition: `default_filters`
   --> function-grep/src/filter.rs:177:14
    |
177 | macro_rules! default_filters {
    |              ^^^^^^^^^^^^^^^
    |
    = note: `#[warn(unused_macros)]` on by default

Check failure on line 472 in function-grep/src/supported_languages.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find function `language_ocaml` in crate `tree_sitter_ocaml`

error[E0425]: cannot find function `language_ocaml` in crate `tree_sitter_ocaml`
   --> function-grep/src/supported_languages.rs:472:46
    |
472 | construct_language!(OCaml(tree_sitter_ocaml::language_ocaml()).[ml]?="method-name" =>
    |                                              ^^^^^^^^^^^^^^ help: a constant with a similar name exists: `LANGUAGE_OCAML`
    |
   ::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-ocaml-0.23.2/bindings/rust/lib.rs:44:1
    |
44  | pub const LANGUAGE_OCAML: LanguageFn = unsafe { LanguageFn::from_raw(tree_sitter_ocaml) };
    | ------------------------------------ similarly named constant `LANGUAGE_OCAML` defined here