From 169789cdb36fb1f9b52b1df2e69bd9f5eee583b3 Mon Sep 17 00:00:00 2001 From: Ruediger Klaehn Date: Thu, 14 Nov 2024 15:48:59 +0200 Subject: [PATCH] Prevent unused import without rpc feature --- src/engine.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine.rs b/src/engine.rs index e596fc1..d930e01 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -6,7 +6,7 @@ use std::{ io, path::PathBuf, str::FromStr, - sync::{Arc, OnceLock, RwLock}, + sync::{Arc, RwLock}, }; use anyhow::{bail, Context, Result}; @@ -57,7 +57,7 @@ pub struct Engine { local_pool_handle: LocalPoolHandle, blob_store: D, #[cfg(feature = "rpc")] - pub(crate) rpc_handler: Arc>, + pub(crate) rpc_handler: Arc>, } impl Engine {