From c8bb57494808e2635339abbf4d594b57b3ca3087 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 28 Apr 2024 17:37:47 -0400 Subject: [PATCH] fix warning on windows --- veilid-server/src/settings.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/veilid-server/src/settings.rs b/veilid-server/src/settings.rs index d28b7b6e..b82b6c89 100644 --- a/veilid-server/src/settings.rs +++ b/veilid-server/src/settings.rs @@ -738,12 +738,11 @@ impl Settings { } pub fn verify(&self) -> EyreResult<()> { - let inner = self.inner.read(); - cfg_if! { if #[cfg(windows)] { // no ipc setup for windows } else { + let inner = self.inner.read(); if inner.client_api.ipc_enabled && !Self::get_or_create_private_directory(&inner.client_api.ipc_directory, true) {