From 1a0315f3fb9a7c719e1712fa3e306a60baa391f3 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 6 Jan 2025 18:22:54 +0100 Subject: Address more linter issues --- src/post.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/post.rs') diff --git a/src/post.rs b/src/post.rs index 51614aa..ef744b4 100644 --- a/src/post.rs +++ b/src/post.rs @@ -122,7 +122,7 @@ mod tests { let post = Post { metadata: Metadata { id: "cool".to_string(), - created_on: 1736035200000, + created_on: 1_736_035_200_000, }, index: 28, html: "

beep boop

".to_string(), @@ -135,7 +135,7 @@ beep boop" let context = post.to_template_value(); assert_eq!(context["id"], Value::String("cool".to_string())); - assert_eq!(context["created_on"], Value::Unsigned(1736035200000)); + assert_eq!(context["created_on"], Value::Unsigned(1_736_035_200_000)); assert_eq!( context["created_on_utc"], Value::String("Sun, 05 Jan 2025 00:00:00 +0000".to_string()) -- cgit