aboutsummaryrefslogtreecommitdiff
path: root/src/post.rs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-01-06 18:22:54 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-01-06 18:22:54 +0100
commit1a0315f3fb9a7c719e1712fa3e306a60baa391f3 (patch)
tree60f5631c40776607e5135955a92a31b30e4e9d57 /src/post.rs
parent51cd7f23be5737a4e5c979d73e158681e5466089 (diff)
Address more linter issues
Diffstat (limited to 'src/post.rs')
-rw-r--r--src/post.rs4
1 files changed, 2 insertions, 2 deletions
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: "<p>beep boop</p>".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())