From 05d062f4e0c13a0027b453d5ff32ce0cbc6e1a68 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Tue, 9 Jun 2026 02:31:02 +0200 Subject: [PATCH] fmt --- crates/domain/src/models/feed.rs | 5 +++- crates/domain/src/models/mod.rs | 32 +++++++++++------------ crates/presentation/src/handlers/users.rs | 17 ++++++------ 3 files changed, 28 insertions(+), 26 deletions(-) diff --git a/crates/domain/src/models/feed.rs b/crates/domain/src/models/feed.rs index 92572bd..2f4d115 100644 --- a/crates/domain/src/models/feed.rs +++ b/crates/domain/src/models/feed.rs @@ -1,4 +1,7 @@ -use super::{movie::Movie, review::{DiaryEntry, Review}}; +use super::{ + movie::Movie, + review::{DiaryEntry, Review}, +}; #[derive(Clone, Debug)] pub struct FeedEntry { diff --git a/crates/domain/src/models/mod.rs b/crates/domain/src/models/mod.rs index af90564..ef166c4 100644 --- a/crates/domain/src/models/mod.rs +++ b/crates/domain/src/models/mod.rs @@ -1,40 +1,40 @@ -mod movie; -mod review; -mod user; -mod stats; mod enrichment; mod feed; +mod movie; +mod review; +mod stats; +mod user; pub mod collections; +pub mod goal; pub mod import; pub mod import_profile; pub mod import_session; pub mod person; -pub mod search; -pub mod watchlist; -pub mod remote_watchlist; -pub mod goal; -pub mod user_settings; pub mod remote_goal; +pub mod remote_watchlist; +pub mod search; +pub mod user_settings; pub mod watch_event; +pub mod watchlist; pub mod wrapup; -pub use movie::*; -pub use review::*; -pub use user::*; -pub use stats::*; pub use enrichment::*; pub use feed::*; +pub use movie::*; +pub use review::*; +pub use stats::*; +pub use user::*; -pub use watchlist::{WatchlistEntry, WatchlistWithMovie}; -pub use remote_watchlist::RemoteWatchlistEntry; pub use goal::{Goal, GoalWithProgress}; -pub use user_settings::UserSettings; pub use remote_goal::RemoteGoalEntry; +pub use remote_watchlist::RemoteWatchlistEntry; +pub use user_settings::UserSettings; pub use watch_event::{ ParsedPlaybackEvent, PersistedWatchEvent, WatchEvent, WatchEventSource, WatchEventStatus, WebhookToken, }; +pub use watchlist::{WatchlistEntry, WatchlistWithMovie}; pub use wrapup::*; pub use import::{ diff --git a/crates/presentation/src/handlers/users.rs b/crates/presentation/src/handlers/users.rs index 520c7fc..0184dd1 100644 --- a/crates/presentation/src/handlers/users.rs +++ b/crates/presentation/src/handlers/users.rs @@ -63,8 +63,12 @@ pub async fn get_profile( username: profile.username, display_name: profile.display_name, bio: profile.bio, - avatar_url: profile.avatar_path.map(|p| format!("{}/images/{}", base_url, p)), - banner_url: profile.banner_path.map(|p| format!("{}/images/{}", base_url, p)), + avatar_url: profile + .avatar_path + .map(|p| format!("{}/images/{}", base_url, p)), + banner_url: profile + .banner_path + .map(|p| format!("{}/images/{}", base_url, p)), also_known_as: profile.also_known_as, fields: profile .fields @@ -543,13 +547,8 @@ pub async fn get_user_profile_html( .most_active_month .clone() .unwrap_or_else(|| "\u{2014}".to_string()); - let history = profile - .history - .map(crate::mappers::users::group_by_month); - let heatmap = history - .as_deref() - .map(build_heatmap) - .unwrap_or_default(); + let history = profile.history.map(crate::mappers::users::group_by_month); + let heatmap = history.as_deref().map(build_heatmap).unwrap_or_default(); let monthly_rating_rows: Vec> = profile .trends .as_ref()