From 9ad401be872faf491eaaff40eff40103f9cbb855 Mon Sep 17 00:00:00 2001 From: David Peter Date: Tue, 16 Feb 2021 09:13:22 +0100 Subject: [PATCH] Fix clippy suggestion --- src/bin/bat/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/bat/main.rs b/src/bin/bat/main.rs index 1d430c30..c36d369b 100644 --- a/src/bin/bat/main.rs +++ b/src/bin/bat/main.rs @@ -230,7 +230,7 @@ fn run() -> Result { if app.matches.is_present("diagnostic") { use bugreport::{bugreport, collector::*, format::Markdown}; let pager = bat::config::get_pager_executable(app.matches.value_of("pager")) - .unwrap_or("less".to_owned()); // FIXME: Avoid non-canonical path to "less". + .unwrap_or_else(|| "less".to_owned()); // FIXME: Avoid non-canonical path to "less". bugreport!() .info(SoftwareVersion::default())