From acb4765bc68f9f6c5c159c96282647e7f02d5773 Mon Sep 17 00:00:00 2001 From: J Robert Ray Date: Fri, 17 May 2024 17:54:02 -0700 Subject: [PATCH] Fix dead code warning depending on enabled features Signed-off-by: J Robert Ray --- crates/spfs/src/proto/result.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/spfs/src/proto/result.rs b/crates/spfs/src/proto/result.rs index 5fcb9feb8..caaf9fd89 100644 --- a/crates/spfs/src/proto/result.rs +++ b/crates/spfs/src/proto/result.rs @@ -2,6 +2,8 @@ // SPDX-License-Identifier: Apache-2.0 // https://github.com/imageworks/spk +// This trait causes dead code warnings when the server feature is not enabled. +#[allow(dead_code)] pub(crate) trait RpcResult: Sized { type Ok; type Result;