From 0b6a4634675f27b88bb61b54f2b3711d0cd2f1a0 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Mon, 3 May 2021 08:20:40 +0200 Subject: Revert "Make runnable's run() method take a mutable self-reference." This reverts commit e1f0525e4e1dcf674aa7489042a06b7c7d671a2a. I've decided against having mutable self-references. It's a bit less convenient, but more sane. Also, the revert can be reverted any time, should the need arise. --- swaystatus-plugin/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swaystatus-plugin') diff --git a/swaystatus-plugin/src/lib.rs b/swaystatus-plugin/src/lib.rs index a9859c8..8a632cf 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(&mut self); + fn run(&self); } ///Implement this trait on a struct that holds the configuration for a single instance of your -- cgit v1.2.3