From: Simon Tatham Date: Sun, 4 Feb 2024 20:05:38 +0000 (+0000) Subject: Fix sense of a matches! test. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=37bab54f92041e4f0c5599714c9fb0f97b131e50;p=mastodonochrome.git Fix sense of a matches! test. Commit 009510029ba6cb7 translated it from a 4-line 'match self' with the wrong branch corresponding to true. --- 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(_)) } }