From da5046bfc034d76d71205da2aee935ce0c7a149c Mon Sep 17 00:00:00 2001 From: quirinecker Date: Mon, 13 Mar 2023 00:28:07 +0100 Subject: [PATCH] simplified match --- src/app/commands/serve.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/commands/serve.rs b/src/app/commands/serve.rs index 3fdf0e9..3b5bdff 100644 --- a/src/app/commands/serve.rs +++ b/src/app/commands/serve.rs @@ -5,7 +5,7 @@ use notify::{ event::ModifyKind, Event, EventKind, RecursiveMode, Watcher, }; -use std::{env, path::Path, process::Output}; +use std::{env, path::Path}; use crate::app::{ watcher::watcher, build::{docki_build, DockiBuildResult}, commands::build::build, log::display_status}; @@ -44,9 +44,7 @@ async fn watch(path: &Path) -> notify::Result<()> { fn file_change(event: Event) { match event.kind { - EventKind::Modify(ModifyKind::Data(_)) => { - build_file(event.paths) - } + EventKind::Modify(ModifyKind::Data(_)) => build_file(event.paths), _ => (), } }