From 559e4d09159e6966fe33faed6ddba4de3e9f2412 Mon Sep 17 00:00:00 2001 From: tilpner Date: Fri, 3 May 2019 14:50:06 +0200 Subject: Remove unnecessary prints --- src/main.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index c50f44f..a86f1c8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -175,14 +175,11 @@ fn highlight(cfg: &Config, mut input: Box) -> impl Iterator< let syntax = if let Ok(lang) = cfg.get_str("language") { - println!("choosing {}", &lang); syntax_set.find_syntax_by_token(&lang).expect("Failed to load syntax") } else if let Ok(path) = cfg.get_str("file") { - println!("choosing for {}", &path); syntax_set.find_syntax_for_file(path) .unwrap_or_default().expect("Failed to load syntax from path") } else { - println!("unknown language"); syntax_set.find_syntax_by_first_line(&input_str) .unwrap_or_else(|| syntax_set.find_syntax_plain_text()) }; -- cgit v1.2.3