Simplify fullstack auth example (#3598)

This commit is contained in:
Evan Almloff authored and GitHub committed 2025-01-20 16:35:19 -08:00
1 parent eaf9f80abd
commit aba2e73025
3 files changed
+18 -85

No files matched your search

+2 -6
View File
@@ -405,12 +405,8 @@ pub struct Axum;
#[cfg(feature = "axum")]
#[async_trait::async_trait]
impl<
I: axum::extract::FromRequestParts<(), Rejection = R>,
R: axum::response::IntoResponse + std::error::Error,
> FromServerContext<Axum> for I
{
type Rejection = R;
impl<I: axum::extract::FromRequestParts<()>> FromServerContext<Axum> for I {
type Rejection = I::Rejection;
#[allow(clippy::all)]
async fn from_request(req: &DioxusServerContext) -> Result<Self, Self::Rejection> {