Fetch User Keys - simple tool for fetching SSH keys from various sources
3
fork

Configure Feed

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

fix: remove unneeded extra allocation

hauleth.dev d3475510 35153a51

verified
+2 -2
+2 -2
cli/src/config.rs
··· 10 10 #[derive(Debug, serde::Deserialize)] 11 11 pub struct Entry { 12 12 pub name: String, 13 - pub keys: Box<[Box<Source>]>, 13 + pub keys: Box<[Source]>, 14 14 } 15 15 16 16 impl Entry { ··· 33 33 34 34 impl Config { 35 35 pub fn fetch(&self) -> Result<Output, ()> { 36 - let keys = self.entries.par_iter().map(Entry::fetch).collect(); 36 + let keys = self.entries.into_par_iter().map(Entry::fetch).collect(); 37 37 38 38 Ok(Output { keys }) 39 39 }