Modifying changing config for efficiency

This commit is contained in:
ms2300 2018-08-25 23:27:10 -06:00 committed by David Peter
parent 2e3784aa30
commit f3dde0185d
1 changed files with 2 additions and 3 deletions

View File

@ -130,12 +130,11 @@ pub fn list_languages(assets: &HighlightingAssets, term_width: usize) {
pub fn list_themes(assets: &HighlightingAssets, config: &mut Config) {
let themes = &assets.theme_set.themes;
config.files = vec![Some("assets/hello.rs")];
for (theme, _) in themes.iter() {
println!("{}", theme);
config.theme = theme.to_string();
config.files = vec![Some("assets/hello.rs")];
let controller = Controller::new(&config, &assets);
let _res = controller.run();
let _controller = Controller::new(&config, &assets).run();
}
}