Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yjhmelody committed Aug 24, 2024
1 parent 5fdfbb0 commit 9f43f7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/types/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>) -> Self {
// Since all ErrorKind::ConfigInvalid occur in Builder::build,
// we always call `with_operation` and `with_context`.
Expand All @@ -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,
Expand Down

0 comments on commit 9f43f7b

Please sign in to comment.