Switch todo!() to unreachable!/unimplemented! where it matters

This commit is contained in:
Jonathan Kelley committed 2024-01-31 16:26:20 -08:00
1 parent a14789eebc
commit 8f07d881a6
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 {