Fix server function warning with default features (#4453)

* fix server function warning with default features

* document and hide mock client

* fix clippy

* more clippy fixes

* fix formatting
This commit is contained in:
Evan Almloff authored and GitHub committed 2025-07-22 11:48:47 -07:00
1 parent 86086477d0
commit 18fe6de9a0
7 files changed
+181 -6

No files matched your search

+2 -2
View File
@@ -197,8 +197,8 @@ impl<T: FromStr> FromStr for ServerFnError<T> {
impl<T: Display> Display for ServerFnError<T> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
ServerFnError::ServerError(err) => write!(f, "Server error: {}", err),
ServerFnError::CommunicationError(err) => write!(f, "Communication error: {}", err),
ServerFnError::ServerError(err) => write!(f, "Server error: {err}"),
ServerFnError::CommunicationError(err) => write!(f, "Communication error: {err}"),
}
}
}