Run cargo clippy --fix --all-targets --all-features with Rust 1.57
Clippy in the newly released Rust 1.57 found some new lints. Conveniently, all of them were fixable with `--fix`.
This commit is contained in:
1 parent
7fceb4878f
commit
e250da8aaa
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -195,7 +195,7 @@ impl HighlightingAssets {
|
||||
bat_warning!("Unknown theme '{}', using default.", theme)
|
||||
}
|
||||
self.get_theme_set()
|
||||
.get(self.fallback_theme.unwrap_or_else(|| Self::default_theme()))
|
||||
.get(self.fallback_theme.unwrap_or_else(Self::default_theme))
|
||||
.expect("something is very wrong if the default theme is missing")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user