summaryrefslogtreecommitdiffstats
path: root/src/subcommands/list_syntax_themes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/subcommands/list_syntax_themes.rs')
-rw-r--r--src/subcommands/list_syntax_themes.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/subcommands/list_syntax_themes.rs b/src/subcommands/list_syntax_themes.rs
index 34a7b0b4..e8bdc319 100644
--- a/src/subcommands/list_syntax_themes.rs
+++ b/src/subcommands/list_syntax_themes.rs
@@ -19,11 +19,11 @@ pub fn _list_syntax_themes_for_humans(writer: &mut dyn Write) -> std::io::Result
let assets = utils::bat::assets::load_highlighting_assets();
writeln!(writer, "Light syntax themes:")?;
- for theme in assets.themes().filter(|t| is_light_syntax_theme(*t)) {
+ for theme in assets.themes().filter(|t| is_light_syntax_theme(t)) {
writeln!(writer, " {}", theme)?;
}
writeln!(writer, "\nDark syntax themes:")?;
- for theme in assets.themes().filter(|t| !is_light_syntax_theme(*t)) {
+ for theme in assets.themes().filter(|t| !is_light_syntax_theme(t)) {
writeln!(writer, " {}", theme)?;
}
writeln!(
@@ -35,7 +35,7 @@ pub fn _list_syntax_themes_for_humans(writer: &mut dyn Write) -> std::io::Result
pub fn _list_syntax_themes_for_machines(writer: &mut dyn Write) -> std::io::Result<()> {
let assets = utils::bat::assets::load_highlighting_assets();
- for theme in assets.themes().sorted_by_key(|t| is_light_syntax_theme(*t)) {
+ for theme in assets.themes().sorted_by_key(|t| is_light_syntax_theme(t)) {
writeln!(
writer,
"{}\t{}",