From 9f43f7bc1f45bdd0887ce9b2e339040d6b2b9c52 Mon Sep 17 00:00:00 2001 From: yjhmelody Date: Sat, 24 Aug 2024 23:53:10 +0800 Subject: [PATCH] fix --- core/src/types/error.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/types/error.rs b/core/src/types/error.rs index 4cf5c3d828a1..9d0d6e5490c7 100644 --- a/core/src/types/error.rs +++ b/core/src/types/error.rs @@ -406,6 +406,7 @@ impl Error { /** Useful helper functions for Builder::build */ #[inline] + #[allow(unused)] pub(crate) fn error_kind_config_invalid(scheme: Scheme, message: impl Into) -> Self { // Since all ErrorKind::ConfigInvalid occur in Builder::build, // we always call `with_operation` and `with_context`. @@ -415,11 +416,13 @@ impl Error { } #[inline] + #[allow(unused)] pub(crate) fn empty_endpoint_err(ctx_schema: Scheme) -> Self { Self::error_kind_config_invalid(ctx_schema, "endpoint is empty") } #[inline] + #[allow(unused)] pub(crate) fn ensure_endpoint_not_empty( endpoint: Option<&str>, ctx_schema: Scheme,