mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 09:54:41 -05:00
chore: fix formatting
This commit is contained in:
@@ -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`].
|
||||
|
||||
Reference in New Issue
Block a user