Skip to content

Commit

Permalink
fix(lints): apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Dec 31, 2023
1 parent c9ba166 commit 274bbd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 274bbd3

Please sign in to comment.