chiark / gitweb /
Fix sense of a matches! test.
authorSimon Tatham <anakin@pobox.com>
Sun, 4 Feb 2024 20:05:38 +0000 (20:05 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 4 Feb 2024 20:05:38 +0000 (20:05 +0000)
Commit 009510029ba6cb7 translated it from a 4-line 'match self' with
the wrong branch corresponding to true.

src/activity_stack.rs

index 6fd4e0dade49ced473476f1511cd72dfd88030d6..243889e27c0ce5973677a2fc156b11d1a65d2f86 100644 (file)
@@ -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(_))
     }
 }