Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
0

Configure Feed

Select the types of activity you want to include in your feed.

ahh we don't need mem::replace, just mutable deref

nice

+1 -1
+1 -1
ufos/src/lib.rs
··· 50 50 .get_mut(self.head) 51 51 .ok_or(BatchInsertError::BatchOverflow(self.head))?; 52 52 if candidate.action.is_create() { 53 - std::mem::replace(candidate, commit); 53 + *candidate = commit; 54 54 break; 55 55 } 56 56 self.advance_head();