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.

lil fancy

whatever

+4 -6
+4 -6
ufos/src/storage_fjall.rs
··· 271 271 } 272 272 impl From<&Blah> for TopCollections { 273 273 fn from(bla: &Blah) -> Self { 274 - let mut me = Self { 274 + Self { 275 275 total_records: bla.counts.records(), 276 276 dids_estimate: bla.counts.dids().estimate() as u64, 277 - ..Default::default() 278 - }; 279 - for (k, v) in &bla.children { 280 - me.nsid_child_segments.insert(k.to_string(), v.into()); 277 + nsid_child_segments: HashMap::from_iter( 278 + bla.children.iter().map(|(k, v)| (k.to_string(), v.into())), 279 + ), 281 280 } 282 - me 283 281 } 284 282 } 285 283