Add helper methods to provide a single clone server only context (#3483)
* Add helper methods to provide a single clone server only context * fix clippy
This commit is contained in:
1 parent
b91d374479
commit
1fa172486b
2 files changed
+182
-19
No files matched your search
@@ -57,10 +57,6 @@
|
||||
|
||||
pub mod launch;
|
||||
|
||||
#[allow(unused)]
|
||||
pub(crate) type ContextProviders =
|
||||
Arc<Vec<Box<dyn Fn() -> Box<dyn std::any::Any> + Send + Sync + 'static>>>;
|
||||
|
||||
use axum::routing::*;
|
||||
use axum::{
|
||||
body::{self, Body},
|
||||
@@ -73,7 +69,7 @@ use http::header::*;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::prelude::*;
|
||||
use crate::{prelude::*, ContextProviders};
|
||||
|
||||
/// A extension trait with utilities for integrating Dioxus with your Axum router.
|
||||
pub trait DioxusRouterExt<S> {
|
||||
|
||||
Reference in new issue
Block a user