From 274bbd3307f42146581e8c8d7602bb65216a3f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sun, 31 Dec 2023 14:06:39 +0300 Subject: [PATCH] fix(lints): apply clippy suggestions --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f5eb2c4..f03d682 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,7 +89,7 @@ fn setup(config_folder: &Path) -> IoResult<(Data>, ServerConfig, let cloned_config = Data::clone(&config); let config_watcher = move |event: Event| { if let (EventKind::Modify(ModifyKind::Data(_)), Some(path)) = - (event.kind, event.paths.get(0)) + (event.kind, event.paths.first()) { match Config::parse(path) { Ok(config) => match cloned_config.write() {