Fix cargo test --workspace, associated feature flags, and a number of doctests
This commit is contained in:
1 parent
fdd77d79c1
commit
8df53df887
11 files changed
+218
-187
No files matched your search
@@ -135,6 +135,15 @@ impl ServerFnError {
|
||||
/// # Examples
|
||||
/// ```rust
|
||||
/// use dioxus::prelude::*;
|
||||
/// use serde::{Serialize, Deserialize};
|
||||
///
|
||||
/// #[derive(Serialize, Deserialize, Debug)]
|
||||
/// struct MyCustomError;
|
||||
/// impl std::fmt::Display for MyCustomError {
|
||||
/// fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
/// write!(f, "My custom error")
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
/// #[server]
|
||||
/// async fn server_function() -> ServerFnResult<String, MyCustomError> {
|
||||
|
||||
Reference in new issue
Block a user