fmstl
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use chrono::{DateTime, Local, Timelike};
|
||||
use iced::futures::{channel::mpsc, SinkExt, StreamExt};
|
||||
use iced::futures::{channel::mpsc, SinkExt};
|
||||
use iced::Subscription;
|
||||
|
||||
use common::{ClockKind, ClockPayload, Endpoint, Inbox, Wire};
|
||||
@@ -17,20 +17,12 @@ use common::{ClockKind, ClockPayload, Endpoint, Inbox, Wire};
|
||||
pub const NAMESPACE: &str = "clock.";
|
||||
|
||||
/// Drives the clock, publishing only the kind modules last asked for.
|
||||
#[derive(Default)]
|
||||
pub struct ClockTicker {
|
||||
last: DateTime<Local>,
|
||||
// want: ClockKind,
|
||||
}
|
||||
|
||||
impl Default for ClockTicker {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
last: DateTime::default(),
|
||||
// want: ClockKind::Seconds,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl ClockTicker {
|
||||
pub fn new() -> Self {
|
||||
Self::default()
|
||||
|
||||
Reference in New Issue
Block a user