From e1f0525e4e1dcf674aa7489042a06b7c7d671a2a Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sun, 2 May 2021 16:10:34 +0200 Subject: Make runnable's run() method take a mutable self-reference. Because there is no real reason speaking against it, and it makes plugin development a lot easier. --- clock/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clock/src') diff --git a/clock/src/lib.rs b/clock/src/lib.rs index 76f5ea7..8055449 100644 --- a/clock/src/lib.rs +++ b/clock/src/lib.rs @@ -76,7 +76,7 @@ impl<'c> ClockRunnable<'c> { } impl<'c> SwayStatusModuleRunnable for ClockRunnable<'c> { - fn run(&self) { + fn run(&mut self) { match self.config.refresh_rate { ClockRefreshRate::NotSynchronized { seconds } => { self.simple_loop(std::time::Duration::from_secs_f32(seconds.abs())); -- cgit v1.2.3