commit 2c1bdd91e02519cfff37f89767a624b2a41cc51b
parent 0a4eb469ab5e30263856bf292c6d1378fe25e60f
Author: William Casarin <jb55@jb55.com>
Date: Thu, 6 Nov 2025 21:36:06 -0800
clndash: clippy fix
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/crates/notedeck_clndash/src/event.rs b/crates/notedeck_clndash/src/event.rs
@@ -8,18 +8,15 @@ pub enum ConnectionState {
Connecting,
Active,
}
+
+#[derive(Default)]
pub enum LoadingState<T, E> {
+ #[default]
Loading,
Failed(E),
Loaded(T),
}
-impl<T, E> Default for LoadingState<T, E> {
- fn default() -> Self {
- Self::Loading
- }
-}
-
impl<T, E> LoadingState<T, E> {
fn _as_ref(&self) -> LoadingState<&T, &E> {
match self {