fix(lints): apply clippy suggestions
This commit is contained in:
parent
c9ba166865
commit
274bbd3307
|
@ -89,7 +89,7 @@ fn setup(config_folder: &Path) -> IoResult<(Data<RwLock<Config>>, ServerConfig,
|
||||||
let cloned_config = Data::clone(&config);
|
let cloned_config = Data::clone(&config);
|
||||||
let config_watcher = move |event: Event| {
|
let config_watcher = move |event: Event| {
|
||||||
if let (EventKind::Modify(ModifyKind::Data(_)), Some(path)) =
|
if let (EventKind::Modify(ModifyKind::Data(_)), Some(path)) =
|
||||||
(event.kind, event.paths.get(0))
|
(event.kind, event.paths.first())
|
||||||
{
|
{
|
||||||
match Config::parse(path) {
|
match Config::parse(path) {
|
||||||
Ok(config) => match cloned_config.write() {
|
Ok(config) => match cloned_config.write() {
|
||||||
|
|
Loading…
Reference in New Issue