From 8bb0fb8fcb1931825260a8be264bfbac97369cfb Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sat, 14 Dec 2024 05:13:55 +0100 Subject: [PATCH] fix --- src/library/video.rs | 2 +- src/pages/components.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/library/video.rs b/src/library/video.rs index 3abfbdd..b9dfa7a 100644 --- a/src/library/video.rs +++ b/src/library/video.rs @@ -15,7 +15,7 @@ pub struct YouTubeMeta { pub description: String, pub uploader_name: String, pub uploader_id: String, - pub views: i64, + pub views: i32, pub upload_date: chrono::NaiveDate, } diff --git a/src/pages/components.rs b/src/pages/components.rs index 4030a4e..773ae03 100644 --- a/src/pages/components.rs +++ b/src/pages/components.rs @@ -99,7 +99,7 @@ pub fn format_date(date: &chrono::NaiveDate) -> String { date.to_string() } -pub fn format_number(num: i64) -> String { +pub fn format_number(num: i32) -> String { // TODO : Implement num.to_string() }