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