Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
lib: Add default impl for state ticker
Erik Kundt committed 1 year ago
commit d2eac1c29ff1ce5758d655eac401888d97b7e882
parent 3f96409e03b3b1a7b4e924b7674401ddd97d046c
3 files changed +1 -5
modified examples/basic.rs
@@ -45,8 +45,6 @@ impl store::State<()> for State {
            }
        }
    }
-

-
    fn tick(&mut self) {}
}

#[tokio::main]
modified examples/hello.rs
@@ -44,8 +44,6 @@ impl store::State<()> for State {
            Message::Quit => Some(Exit { value: None }),
        }
    }
-

-
    fn tick(&mut self) {}
}

#[tokio::main]
modified src/store.rs
@@ -24,7 +24,7 @@ where
    fn update(&mut self, message: Self::Message) -> Option<Exit<P>>;

    /// Handle recurring tick.
-
    fn tick(&mut self);
+
    fn tick(&mut self) {}
}

/// The `Store` updates the applications' state concurrently. It handles