From 6cd42bb8210b0e687942e388d66b07f286fe6bb6 Mon Sep 17 00:00:00 2001 From: Andrew Bagshaw Date: Wed, 13 Mar 2019 14:08:28 -0700 Subject: [PATCH] Add clear break between verify executions --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 19c0ae0a..1b62e28e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -84,10 +84,12 @@ fn watch() -> notify::Result<()> { let _ignored = verify(None); loop { - match rx.recv() { + match rx.recv() { Ok(event) => match event { DebouncedEvent::Create(b) | DebouncedEvent::Chmod(b) | DebouncedEvent::Write(b) => { if b.extension() == Some(OsStr::new("rs")) { + println!("----------**********----------"); + println!(); let _ignored = verify(Some(b.as_path().to_str().unwrap())); } }