From 37bab54f92041e4f0c5599714c9fb0f97b131e50 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 4 Feb 2024 20:05:38 +0000 Subject: [PATCH] Fix sense of a matches! test. Commit 009510029ba6cb7 translated it from a 4-line 'match self' with the wrong branch corresponding to true. --- src/activity_stack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activity_stack.rs b/src/activity_stack.rs index 6fd4e0d..243889e 100644 --- a/src/activity_stack.rs +++ b/src/activity_stack.rs @@ -97,7 +97,7 @@ impl Activity { // This even counts the ReadMentions activity _itself_ - it // gets reinitialised, because that's the simplest way to jump // you down to the new message. - matches!(self, Activity::Compose(_)) + !matches!(self, Activity::Compose(_)) } } -- 2.30.2