mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-11 16:51:43 +02:00
Fix some clippy lints
Some might actually improve perf
This commit is contained in:
@ -45,9 +45,9 @@ impl<'b> Controller<'b> {
|
||||
if self.config.paging_mode != PagingMode::Never {
|
||||
let call_pager = inputs.iter().any(|ref input| {
|
||||
if let InputKind::OrdinaryFile(ref path) = input.kind {
|
||||
return Path::new(path).exists();
|
||||
Path::new(path).exists()
|
||||
} else {
|
||||
return true;
|
||||
true
|
||||
}
|
||||
});
|
||||
if !call_pager {
|
||||
|
Reference in New Issue
Block a user