diff options
| author | liv <liv@fastmail.com> | 2019-01-09 20:08:48 +0100 |
|---|---|---|
| committer | liv <liv@fastmail.com> | 2019-01-09 20:08:48 +0100 |
| commit | ad26a6d0e61393643a8ad1b99812631d53c7c789 (patch) | |
| tree | 16cf435aa80b68622f77e42854c2f6c8b5a0619e | |
| parent | 3ffd43bc2a66ac0d340b8b7a6dc8df55cb3cdb0c (diff) | |
revert
| -rw-r--r-- | src/main.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 7187c03..3cdd0b4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,13 +1,21 @@ -use clap::{App, Arg, SubCommand, crate_version}; +#[macro_use] +extern crate clap; +extern crate console; +extern crate indicatif; +extern crate syntect; +extern crate notify; + +use clap::{App, Arg, SubCommand}; use console::{style, Emoji}; use indicatif::ProgressBar; use syntect::easy::HighlightFile; use syntect::parsing::SyntaxSet; use syntect::highlighting::{ThemeSet, Style}; -use syntect::util::{as_24_bit_terminal_escaped}; +use syntect::util::{as_24_bit_terminal_escaped, LinesWithEndings}; use std::fs::remove_file; use std::io::BufRead; use std::process::Command; +use std::fs::read_to_string; use std::sync::mpsc::channel; use std::time::Duration; use notify::DebouncedEvent; |
