mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-22 12:58:26 +00:00
Fix clippy suggestion
This commit is contained in:
parent
f874c8e4db
commit
9ad401be87
@ -230,7 +230,7 @@ fn run() -> Result<bool> {
|
|||||||
if app.matches.is_present("diagnostic") {
|
if app.matches.is_present("diagnostic") {
|
||||||
use bugreport::{bugreport, collector::*, format::Markdown};
|
use bugreport::{bugreport, collector::*, format::Markdown};
|
||||||
let pager = bat::config::get_pager_executable(app.matches.value_of("pager"))
|
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!()
|
bugreport!()
|
||||||
.info(SoftwareVersion::default())
|
.info(SoftwareVersion::default())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user