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. --- swaystatus-plugin/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swaystatus-plugin/src/lib.rs') diff --git a/swaystatus-plugin/src/lib.rs b/swaystatus-plugin/src/lib.rs index 8a632cf..a9859c8 100644 --- a/swaystatus-plugin/src/lib.rs +++ b/swaystatus-plugin/src/lib.rs @@ -156,7 +156,7 @@ pub trait SwayStatusModule { ///Will be called in a worker thread. pub trait SwayStatusModuleRunnable : Send { ///Starts executing this module. - fn run(&self); + fn run(&mut self); } ///Implement this trait on a struct that holds the configuration for a single instance of your -- cgit v1.2.3