fix(lints): apply clippy suggestions

This commit is contained in:
Orhun Parmaksız 2023-12-31 14:06:39 +03:00
parent c9ba166865
commit 274bbd3307
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ fn setup(config_folder: &Path) -> IoResult<(Data<RwLock<Config>>, 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() {