From 4bf850ae157c5597efa67c4e1d94716a89b3f5a7 Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 4 Nov 2026 14:51:21 -0500 Subject: [PATCH] Code formatting --- src/ledger/mod.rs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/ledger/mod.rs b/src/ledger/mod.rs index 808479e..0f9fa9c 100644 --- a/src/ledger/mod.rs +++ b/src/ledger/mod.rs @@ -1,24 +1,17 @@ - pub struct SongEvent { pub id: uuid::Uuid, pub song_id: uuid::Uuid, pub user_id: uuid::Uuid, pub event_type: String, - pub event_time: time::OffsetDateTime + pub event_time: time::OffsetDateTime, } impl SongEvent { pub fn is_event_type_valid(&self) -> bool { match self.event_type.as_str() { - SONG_EVENT_TYPE_PLAY => { - true - }, - SONG_EVENT_TYPE_PAUSE => { - true - }, - _ => { - false - } + SONG_EVENT_TYPE_PLAY => true, + SONG_EVENT_TYPE_PAUSE => true, + _ => false, } } }