From ef0e6df8d4a40dd85280e891d98351a833aee3a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Wed, 22 Aug 2018 00:10:57 +1200 Subject: [PATCH] Remove duplication between main/lib files --- src/main.rs | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6398ea3..f4a9942 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,33 +1,6 @@ -#[macro_use] -extern crate clap; -extern crate globset; -extern crate env_logger; -#[macro_use] -extern crate log; -#[macro_use] -extern crate lazy_static; -extern crate notify; - -#[cfg(unix)] -extern crate nix; -#[cfg(windows)] -extern crate winapi; -#[cfg(windows)] -extern crate kernel32; - -#[cfg(test)] -extern crate mktemp; - -mod cli; -mod gitignore; -mod notification_filter; -mod process; -mod run; -mod signal; -mod watcher; -mod pathop; +extern crate watchexec; +use watchexec::{cli::get_args, run}; fn main() { - let args = cli::get_args(); - run::run(args); + run(get_args()); }