aboutsummaryrefslogtreecommitdiff
path: root/swaystatus-plugin
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2021-05-02 16:10:34 +0200
committerAndreas Grois <andi@grois.info>2021-05-02 16:10:34 +0200
commite1f0525e4e1dcf674aa7489042a06b7c7d671a2a (patch)
tree2c863dd331a222d77e66c36847dc6408b2dff649 /swaystatus-plugin
parentd2fd2da41dbc9c2f19711c14cd68142d5484eb40 (diff)
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.
Diffstat (limited to 'swaystatus-plugin')
-rw-r--r--swaystatus-plugin/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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