Skip to content

fix(deps): update rust crate time to v0.3.39 #485

fix(deps): update rust crate time to v0.3.39

fix(deps): update rust crate time to v0.3.39 #485

GitHub Actions / clippy failed Mar 6, 2025 in 0s

clippy

5 errors

Details

Results

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

Versions

  • rustc 1.85.0 (4d91de4e4 2025-02-17)
  • cargo 1.85.0 (d73d2caf9 2024-12-31)
  • clippy 0.1.85 (4d91de4e48 2025-02-17)

Annotations

Check failure on line 103 in src/config/builder/hoard.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless conversion to the same type: `config::builder::hoard::Error`

error: useless conversion to the same type: `config::builder::hoard::Error`
   --> src/config/builder/hoard.rs:103:66
    |
103 |                 let entry = entry.process_with(envs, exclusivity).map_err(Error::from)?;
    |                                                                  ^^^^^^^^^^^^^^^^^^^^^ help: consider removing
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
note: the lint level is defined here
   --> src/lib.rs:22:9
    |
22  | #![deny(clippy::complexity)]
    |         ^^^^^^^^^^^^^^^^^^
    = note: `#[deny(clippy::useless_conversion)]` implied by `#[deny(clippy::complexity)]`

Check failure on line 78 in src/config/builder/environment/exe.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `map_or` can be simplified

error: this `map_or` can be simplified
  --> src/config/builder/environment/exe.rs:78:33
   |
78 |         let is_lone_file_name = value.parent().map_or(false, |s| s.as_os_str().is_empty());
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `value.parent().is_some_and(|s| s.as_os_str().is_empty())`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or

Check failure on line 164 in src/checkers/history/operation/v2.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `map_or` can be simplified

error: this `map_or` can be simplified
   --> src/checkers/history/operation/v2.rs:162:9
    |
162 | /         self.files
163 | |             .get_pile(pile_name)
164 | |             .map_or(false, |pile| pile.contains_file(rel_path, only_modified))
    | |______________________________________________________________________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
help: use is_some_and instead
    |
162 ~         self.files
163 +             .get_pile(pile_name).is_some_and(|pile| pile.contains_file(rel_path, only_modified))
    |

Check failure on line 24 in src/checkers/history/operation/v2.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

empty line after doc comment

error: empty line after doc comment
  --> src/checkers/history/operation/v2.rs:23:1
   |
23 | / /// Errors that may occur while working with operation logs.
24 | |
   | |_^
...
32 |   pub struct OperationV2 {
   |   ---------------------- the comment documents this struct
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments
note: the lint level is defined here
  --> src/lib.rs:19:9
   |
19 | #![deny(clippy::all)]
   |         ^^^^^^^^^^^
   = note: `#[deny(clippy::empty_line_after_doc_comments)]` implied by `#[deny(clippy::all)]`
   = help: if the empty line is unintentional remove it
help: if the documentation should include the empty line include it in the comment
   |
24 | ///
   |

Check failure on line 50 in src/checkers/history/operation/v1.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `map_or` can be simplified

error: this `map_or` can be simplified
  --> src/checkers/history/operation/v1.rs:48:55
   |
48 |               (Some(pile_name), Hoard::Named(piles)) => piles
   |  _______________________________________________________^
49 | |                 .get(pile_name)
50 | |                 .map_or(false, |pile| pile.0.contains_key(rel_path)),
   | |____________________________________________________________________^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
note: the lint level is defined here
  --> src/lib.rs:21:9
   |
21 | #![deny(clippy::style)]
   |         ^^^^^^^^^^^^^
   = note: `#[deny(clippy::unnecessary_map_or)]` implied by `#[deny(clippy::style)]`
help: use is_some_and instead
   |
48 ~             (Some(pile_name), Hoard::Named(piles)) => piles
49 ~                 .get(pile_name).is_some_and(|pile| pile.0.contains_key(rel_path)),
   |