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:
fe79329
)
Change !...is_some to is_none
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 4 Feb 2024 12:37:20 +0000
(12:37 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 4 Feb 2024 14:24:38 +0000
(14:24 +0000)
src/client.rs
patch
|
blob
|
history
diff --git
a/src/client.rs
b/src/client.rs
index effb98c0eef7a577e08cc974d2fb3280593d4d9a..8b8e35f8a3144c3a96b1d5a60aac5100ee46e838 100644
(file)
--- a/
src/client.rs
+++ b/
src/client.rs
@@
-746,7
+746,7
@@
impl Client {
let mut ac = ac.clone();
// Don't overwrite a cached account with a 'source' to one
// without.
- if
!ac.source.is_som
e() {
+ if
ac.source.is_non
e() {
if let Some(source) =
self.accounts.get(&ac.id).and_then(|ac| ac.source.as_ref())
{