Fix clippy lints (#399)
* cargo fmt * fix: remove redundant `use libc` import (clippy::single_component_path_imports) * fix: use `.first()` instead of `.get(0)` (clippy::get_first) * fix: use `.copied()` instead of `.map(|s| *s)` (clippy::map_clone) * fix: allow too_many_arguments on ensure_daemon (clippy::too_many_arguments) * fix: use `then_some` instead of `then` with closure (clippy::unnecessary_lazy_evaluations) * fix: use pattern match instead of redundant guard (clippy::redundant_guards) * fix: use pattern match instead of redundant guard in commands.rs (clippy::redundant_guards) * fix: use `contains()` instead of `iter().any()` for simple equality (clippy::manual_contains) * Add changeset
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"agent-browser": patch
|
||||
---
|
||||
|
||||
Fix all Clippy lint warnings in the Rust CLI: remove redundant import, use `.first()` instead of `.get(0)`, use `.copied()` instead of `.map(|s| *s)`, use `.contains()` instead of `.iter().any()`, use `then_some` instead of lazy `then`, and simplify redundant match guards.
|
||||
Reference in New Issue
Block a user