Switch todo!() to unreachable!/unimplemented! where it matters
This commit is contained in:
27 files changed
+73
-180
No files matched your search
@@ -184,7 +184,7 @@ pub trait DioxusRouterExt<S> {
|
||||
/// }
|
||||
///
|
||||
/// fn app() -> Element {
|
||||
/// todo!()
|
||||
/// unimplemented!()
|
||||
/// }
|
||||
/// ```
|
||||
fn serve_static_assets(self, assets_path: impl Into<std::path::PathBuf>) -> Self;
|
||||
@@ -213,7 +213,7 @@ pub trait DioxusRouterExt<S> {
|
||||
/// }
|
||||
///
|
||||
/// fn app() -> Element {
|
||||
/// todo!()
|
||||
/// unimplemented!()
|
||||
/// }
|
||||
/// ```
|
||||
fn serve_dioxus_application(
|
||||
|
||||
@@ -200,7 +200,7 @@ pub trait DioxusRouterExt {
|
||||
/// .await;
|
||||
/// }
|
||||
///
|
||||
/// fn app() -> Element {todo!()}
|
||||
/// fn app() -> Element {unimplemented!() }
|
||||
/// ```
|
||||
fn serve_dioxus_application(
|
||||
self,
|
||||
|
||||
@@ -177,7 +177,7 @@ pub fn register_server_fns(server_fn_route: &'static str) -> BoxedFilter<(impl R
|
||||
/// }
|
||||
///
|
||||
/// fn app() -> Element {
|
||||
/// todo!()
|
||||
/// None
|
||||
/// }
|
||||
/// ```
|
||||
pub fn serve_dioxus_application(
|
||||
|
||||
@@ -16,7 +16,7 @@ use serde::{de::DeserializeOwned, Serialize};
|
||||
/// 1234
|
||||
/// }));
|
||||
///
|
||||
/// todo!()
|
||||
/// None
|
||||
/// }
|
||||
/// ```
|
||||
pub fn server_cached<O: 'static + Serialize + DeserializeOwned>(server_fn: impl Fn() -> O) -> O {
|
||||
|
||||
Reference in new issue
Block a user