aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortilpner2019-05-03 14:50:06 +0200
committertilpner2019-05-03 14:50:06 +0200
commit559e4d09159e6966fe33faed6ddba4de3e9f2412 (patch)
tree32f2e4dd41de818e1ffd6795261e7705e293b3c3
parent730988ce383442d08691249807e5dc9cd7507206 (diff)
downloadrpb-s3-559e4d09159e6966fe33faed6ddba4de3e9f2412.tar.gz
rpb-s3-559e4d09159e6966fe33faed6ddba4de3e9f2412.tar.xz
rpb-s3-559e4d09159e6966fe33faed6ddba4de3e9f2412.zip
Remove unnecessary prints
-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())
};