Fix formatting

This commit is contained in:
Marc Plano-Lesay 2025-04-28 21:11:20 +10:00
parent 2892a0d272
commit d197823674
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
2 changed files with 21 additions and 19 deletions

View file

@ -15,8 +15,8 @@ use serde::{Deserialize, Serialize};
use std::collections::{HashMap, HashSet};
use std::path::{Path, PathBuf};
use reddit_client::RedditClient;
use crate::magnet::{extract_magnet_links, Magnet};
use reddit_client::RedditClient;
mod magnet;
mod reddit_client;
@ -156,7 +156,10 @@ async fn main() -> Result<()> {
if let Some(submissions) = user_posts.get_vec(&username) {
let mut filtered_posts = Vec::new();
for post in submissions.iter().filter(|s| filter_posts(&*s.title, title_filter.clone())) {
for post in submissions
.iter()
.filter(|s| filter_posts(&*s.title, title_filter.clone()))
{
let title = &post.title;
let body = &post.body;
let subreddit = &post.subreddit;