mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Applied linter fixes
This commit is contained in:
1 parent
a21ae614e6
commit
82f14121bd
12 files changed
+37
-44
No files matched your search
+3
-3
@@ -40,7 +40,7 @@ impl HighlightingAssets {
|
||||
let theme_dir = source_dir.join("themes");
|
||||
|
||||
let res = theme_set.add_from_folder(&theme_dir);
|
||||
if !res.is_ok() {
|
||||
if res.is_err() {
|
||||
println!(
|
||||
"No themes were found in '{}', using the default set",
|
||||
theme_dir.to_string_lossy()
|
||||
@@ -191,8 +191,8 @@ impl HighlightingAssets {
|
||||
} else {
|
||||
None
|
||||
};
|
||||
let syntax = ext_syntax.or(line_syntax);
|
||||
syntax
|
||||
|
||||
ext_syntax.or(line_syntax)
|
||||
}
|
||||
(None, InputFile::StdIn) => String::from_utf8(reader.first_line.clone())
|
||||
.ok()
|
||||
|
||||
Reference in new issue
Block a user