Make clippy happy

This commit is contained in:
Marc Plano-Lesay 2025-05-04 21:30:03 +10:00
parent baca332353
commit 756d1824f6
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
4 changed files with 13 additions and 14 deletions

View file

@ -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());
}