fix(deps): update rust crate time to v0.3.39 #485
Annotations
5 errors
useless conversion to the same type: `config::builder::hoard::Error`:
src/config/builder/hoard.rs#L103
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)]`
|
this `map_or` can be simplified:
src/config/builder/environment/exe.rs#L78
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
|
this `map_or` can be simplified:
src/checkers/history/operation/v2.rs#L162
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))
|
|
empty line after doc comment:
src/checkers/history/operation/v2.rs#L23
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 | ///
|
|
this `map_or` can be simplified:
src/checkers/history/operation/v1.rs#L48
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)),
|
|