on master help sign in
src/assets.rs: Use ThemeSet::new() instead of BTreeMap::new()
deddc81Martin Nordholts
src/assets.rs+1−4
@@ -1,4 +1,3 @@
1−use std::collections::BTreeMap;
2use std::ffi::OsStr;
1use std::ffi::OsStr;
3use std::fs;
2use std::fs;
4use std::path::{Path, PathBuf};
3use std::path::{Path, PathBuf};
@@ -77,9 +76,7 @@ impl HighlightingAssets {
77 let mut theme_set = if include_integrated_assets {
76 let mut theme_set = if include_integrated_assets {
78 get_integrated_themeset()
77 get_integrated_themeset()
79 } else {
78 } else {
80− ThemeSet {
79+ ThemeSet::new()
81− themes: BTreeMap::new(),
82− }
83 };
80 };
84
81
85 let theme_dir = source_dir.join("themes");
82 let theme_dir = source_dir.join("themes");