Fix cargo test --workspace, associated feature flags, and a number of doctests

This commit is contained in:
Jonathan Kelley committed 2025-06-23 14:33:25 -07:00
1 parent fdd77d79c1
commit 8df53df887
11 files changed
+218 -187

No files matched your search

+9
View File
@@ -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> {