mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 00:51:56 +00:00 
			
		
		
		
	Fix build for Rust 1.26
This commit is contained in:
		@@ -139,7 +139,7 @@ pub fn list_themes(assets: &HighlightingAssets, cfg: &Config) {
 | 
				
			|||||||
    config.files = vec![Some("assets/theme_preview.rs")];
 | 
					    config.files = vec![Some("assets/theme_preview.rs")];
 | 
				
			||||||
    config.output_components = OutputComponents(style);
 | 
					    config.output_components = OutputComponents(style);
 | 
				
			||||||
    for (theme, _) in themes.iter() {
 | 
					    for (theme, _) in themes.iter() {
 | 
				
			||||||
        println!("{}\n", Style::new().bold().paint(theme));
 | 
					        println!("{}\n", Style::new().bold().paint(theme.to_string()));
 | 
				
			||||||
        config.theme = theme.to_string();
 | 
					        config.theme = theme.to_string();
 | 
				
			||||||
        let _controller = Controller::new(&config, &assets).run();
 | 
					        let _controller = Controller::new(&config, &assets).run();
 | 
				
			||||||
        println!("--------------------------------\n");
 | 
					        println!("--------------------------------\n");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user