chore: fix formatting

This commit is contained in:
Ifiok Jr.
2025-03-22 08:42:59 +00:00
parent ae23364ef8
commit 753d02a14c

View File

@@ -560,13 +560,16 @@ where
}
#[doc(hidden)]
#[rustversion::attr(since(1.78), diagnostic::on_unimplemented(
message = "{Self} is not a `Result` or aliased `Result`. Server functions \
must return a `Result` or aliased `Result`.",
label = "Must return a `Result` or aliased `Result`.",
note = "If you are trying to return an alias of `Result`, you must also \
implement `FromServerFnError` for the error type."
))]
#[rustversion::attr(
since(1.78),
diagnostic::on_unimplemented(
message = "{Self} is not a `Result` or aliased `Result`. Server \
functions must return a `Result` or aliased `Result`.",
label = "Must return a `Result` or aliased `Result`.",
note = "If you are trying to return an alias of `Result`, you must \
also implement `FromServerFnError` for the error type."
)
)]
/// A trait for extracting the error and ok types from a [`Result`]. This is used to allow alias types to be returned from server functions.
pub trait ServerFnMustReturnResult {
/// The error type of the [`Result`].