Make clippy happy
This commit is contained in:
parent
baca332353
commit
756d1824f6
4 changed files with 13 additions and 14 deletions
|
|
@ -44,11 +44,10 @@ impl App {
|
|||
|
||||
/// Initialize actions based on configuration
|
||||
pub fn init_actions(&mut self) -> Result<()> {
|
||||
if let Some(action) = init_action(&mut &self.config.bitmagnet, BitmagnetAction::new)? {
|
||||
if let Some(action) = init_action(&self.config.bitmagnet, BitmagnetAction::new)? {
|
||||
self.actions.push(action);
|
||||
}
|
||||
if let Some(action) = init_action(&mut &self.config.transmission, TransmissionAction::new)?
|
||||
{
|
||||
if let Some(action) = init_action(&self.config.transmission, TransmissionAction::new)? {
|
||||
self.actions.push(action);
|
||||
}
|
||||
|
||||
|
|
@ -67,7 +66,7 @@ impl App {
|
|||
/// Fetch posts from Reddit
|
||||
pub async fn fetch_posts(&self, post_count: u32) -> Result<MultiMap<String, RedditPost>> {
|
||||
let mut unique_usernames = HashSet::new();
|
||||
for (_, source_config) in &self.config.sources {
|
||||
for source_config in self.config.sources.values() {
|
||||
unique_usernames.insert(source_config.username.clone());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue