aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 0 insertions, 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<dyn BufRead + Send>) -> 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())
};