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

+4 -4
View File
@@ -213,9 +213,9 @@ pub trait Routable: FromStr + Display + Clone + 'static {
/// use dioxus::prelude::*;
///
/// #[component]
/// fn Home() -> Element { todo!() }
/// fn Home() -> Element { None }
/// #[component]
/// fn About() -> Element { todo!() }
/// fn About() -> Element { None }
///
/// #[derive(Routable, Clone, PartialEq, Debug)]
/// enum Route {
@@ -255,9 +255,9 @@ pub trait Routable: FromStr + Display + Clone + 'static {
/// use dioxus::prelude::*;
///
/// #[component]
/// fn Home() -> Element { todo!() }
/// fn Home() -> Element { None }
/// #[component]
/// fn About() -> Element { todo!() }
/// fn About() -> Element { None }
///
/// #[derive(Routable, Clone, PartialEq, Debug)]
/// enum Route {