summaryrefslogtreecommitdiffstats
path: root/src/utils/bat/output.rs
diff options
context:
space:
mode:
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 {