Skip to content

refactor: Remove dependency built

43e2b7c
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

refactor: Remove dependency built #38

refactor: Remove dependency built
43e2b7c
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Feb 28, 2026 in 1s

clippy

6 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 6
Note 0
Help 0

Versions

  • rustc 1.93.1 (01f6ddf75 2026-02-11)
  • cargo 1.93.1 (083ac5135 2025-12-15)
  • clippy 0.1.93 (01f6ddf758 2026-02-11)

Annotations

Check warning on line 73 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

called `map(..).flatten()` on `Iterator`

warning: called `map(..).flatten()` on `Iterator`
  --> src/main.rs:72:10
   |
72 |           .map(|path: &PathBuf| create_walker(cfg, path))
   |  __________^
73 | |         .flatten()
   | |__________________^ help: try replacing `map` with `flat_map` and remove the `.flatten()`: `flat_map(|path: &PathBuf| create_walker(cfg, path))`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#map_flatten

Check warning on line 53 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless conversion to the same type: `std::iter::Map<std::slice::Iter<'_, std::path::PathBuf>, {closure@src/main.rs:52:14: 52:30}>`

warning: useless conversion to the same type: `std::iter::Map<std::slice::Iter<'_, std::path::PathBuf>, {closure@src/main.rs:52:14: 52:30}>`
  --> src/main.rs:49:32
   |
49 |       let files: Vec<DirEntry> = cfg
   |  ________________________________^
50 | |         .paths()
51 | |         .iter()
52 | |         .map(|path: &PathBuf| create_walker(cfg, path))
53 | |         .into_iter()
   | |____________________^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#useless_conversion
   = note: `#[warn(clippy::useless_conversion)]` on by default
help: consider removing `.into_iter()`
   |
49 ~     let files: Vec<DirEntry> = cfg
50 +         .paths()
51 +         .iter()
52 +         .map(|path: &PathBuf| create_walker(cfg, path))
   |

Check warning on line 11 in src/parse.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

called `map(..).flatten()` on `Option`

warning: called `map(..).flatten()` on `Option`
  --> src/parse.rs:11:45
   |
11 |     let chr: Option<char> = CHR.find(input).map(|i| i.as_str().chars().next()).flatten();
   |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try replacing `map` with `and_then` and remove the `.flatten()`: `and_then(|i| i.as_str().chars().next())`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#map_flatten
   = note: `#[warn(clippy::map_flatten)]` on by default

Check warning on line 154 in src/cfg.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
   --> src/cfg.rs:154:40
    |
154 |             .filter(|p| Config::filter(&p))
    |                                        ^^ help: change this to: `p`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#needless_borrow
    = note: `#[warn(clippy::needless_borrow)]` on by default

Check warning on line 123 in src/cfg.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

methods `with_path` and `with_limit` are never used

warning: methods `with_path` and `with_limit` are never used
   --> src/cfg.rs:123:12
    |
122 | impl Config {
    | ----------- methods in this implementation
123 |     pub fn with_path<T: Into<PathBuf>>(mut self, path: T) -> Self {
    |            ^^^^^^^^^
...
128 |     pub fn with_limit(mut self, limit: Option<usize>) -> Self {
    |            ^^^^^^^^^^

Check warning on line 106 in src/cfg.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

struct `Verbosity` is never constructed

warning: struct `Verbosity` is never constructed
   --> src/cfg.rs:106:8
    |
106 | struct Verbosity(u8);
    |        ^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default