Fix some clippy lints

Some might actually improve perf
This commit is contained in:
Lzu Tao authored and David Peter committed 2020-04-24 16:11:05 +02:00
1 parent a4828387c1
commit e37e9c1214
12 files changed
+30 -33

No files matched your search

+2 -2
View File
@@ -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 {