diff options
| author | Irene Knapp <ireneista@irenes.space> | 2026-11-25 03:40:14 -0700 |
|---|---|---|
| committer | Irene Knapp <ireneista@irenes.space> | 2026-11-25 04:16:31 -0700 |
| commit | b65303ede0750e9d83df4d2c5df67f143c9171c4 (patch) | |
| tree | a8d15bdaa3493ed7a8b66092e6f58cf6ebe1909f /src/module/time.rs | |
| parent | 5ec7ae026ce9d8c48ef5f0590a300fa308efa487 (diff) | |
i3 mode module fully works now; some API changes
most notably, modules now have a way to request immediate redrawing Change-Id: Id060c88d3ab484addfd8ca574fbc4e2ffdbb5c8f Force-Push: yes
Diffstat (limited to 'src/module/time.rs')
| -rw-r--r-- | src/module/time.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/module/time.rs b/src/module/time.rs index 8c42aca..b875454 100644 --- a/src/module/time.rs +++ b/src/module/time.rs @@ -4,6 +4,7 @@ use crate::module::{ CreatableModule, Module }; use std::time::Duration; +use async_channel::Sender; use async_executor::StaticExecutor; use time::OffsetDateTime; use time::format_description::{ FormatDescriptionV3, parse_owned }; @@ -19,7 +20,8 @@ impl CreatableModule for TimeModule { const REQUIRED_FACILITIES: FacilityType = FacilityType::empty(); async fn new(_facilities: &mut FacilityMap, - _executor: &'static StaticExecutor) + _executor: &'static StaticExecutor, + _redraw_sender: Sender<()>) -> Result<TimeModule> { let format_string = |