summaryrefslogtreecommitdiffstats
path: root/src/utils/bat/output.rs
diff options
context:
space:
mode:
authornickelc <constantin.nickel@gmail.com>2023-02-28 12:37:20 +0100
committerGitHub <noreply@github.com>2023-02-28 06:37:20 -0500
commit28bf556897fe8945a72e8a1c32ceb8636ee428bb (patch)
treee65636fe18034fe65f278b4d872a07f036e51abb /src/utils/bat/output.rs
parentce6448f9c3e8e61d06127c62ee775f9372bc1c34 (diff)
Fix clippy warnings (#1298)
* Fix clippy warnings - `clippy::uninlined_format_args` * Fix clippy warnings - `clippy::clone_on_copy` - `clippy::explicit_auto_deref` - `clippy::iter_cloned_collect` - `clippy::map_clone` - `clippy::needless_borrow` - `clippy::needless_lifetimes` - `clippy::needless_return` - `clippy::redundant_clone` - `clippy::redundant_field_names` - `clippy::seek_to_start_instead_of_rewind` - `clippy::unnecessary_cast` - `clippy::unused_unit`
Diffstat (limited to 'src/utils/bat/output.rs')
-rw-r--r--src/utils/bat/output.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/bat/output.rs b/src/utils/bat/output.rs
index c3ee6a89..96baa0e2 100644
--- a/src/utils/bat/output.rs
+++ b/src/utils/bat/output.rs
@@ -130,7 +130,7 @@ fn _make_process_from_less_path(
config: &config::Config,
) -> Option<Command> {
if let Ok(less_path) = grep_cli::resolve_binary(less_path) {
- let mut p = Command::new(&less_path);
+ let mut p = Command::new(less_path);
if args.is_empty() || replace_arguments_to_less {
p.args(vec!["--RAW-CONTROL-CHARS"]);
@@ -184,7 +184,7 @@ delta is not an appropriate value for $PAGER \
);
}
if let Ok(pager_path) = grep_cli::resolve_binary(pager_path) {
- let mut p = Command::new(&pager_path);
+ let mut p = Command::new(pager_path);
p.args(args);
Some(p)
} else {