Switch todo!() to unreachable!/unimplemented! where it matters
This commit is contained in:
27 files changed
+73
-180
No files matched your search
@@ -150,8 +150,8 @@ impl<T: std::fmt::Debug> std::fmt::Debug for Event<T> {
|
||||
/// }
|
||||
///
|
||||
/// #[derive(Props)]
|
||||
/// struct MyProps<'a> {
|
||||
/// onclick: EventHandler<'a, MouseEvent>,
|
||||
/// struct MyProps {
|
||||
/// onclick: EventHandler<MouseEvent>,
|
||||
/// }
|
||||
///
|
||||
/// fn MyComponent(cx: MyProps) -> Element {
|
||||
|
||||
@@ -72,7 +72,7 @@ where
|
||||
{
|
||||
type Builder = P;
|
||||
fn builder() -> Self::Builder {
|
||||
todo!()
|
||||
unreachable!("Root props technically are never built")
|
||||
}
|
||||
fn memoize(&mut self, _other: &Self) -> bool {
|
||||
true
|
||||
|
||||
Reference in new issue
Block a user