chiark
/
gitweb
/
~ian
/
mastodonochrome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0047a24
)
Fix sense of a matches! test.
author
Simon Tatham
<anakin@pobox.com>
Sun, 4 Feb 2024 20:05:38 +0000
(20:05 +0000)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/src/activity_stack.rs
b/src/activity_stack.rs
index 6fd4e0dade49ced473476f1511cd72dfd88030d6..243889e27c0ce5973677a2fc156b11d1a65d2f86 100644
(file)
--- 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(_))
}
}