From 079357ee1f2a90e5b46490bf1db2d960ea3223b5 Mon Sep 17 00:00:00 2001 From: funilrys Date: Sat, 12 Nov 2022 20:57:27 +0100 Subject: [PATCH] Fix linting issues. --- dump/src/reader/v4/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dump/src/reader/v4/mod.rs b/dump/src/reader/v4/mod.rs index 140890d78..34df609b1 100644 --- a/dump/src/reader/v4/mod.rs +++ b/dump/src/reader/v4/mod.rs @@ -182,8 +182,8 @@ impl V4IndexReader { let metadata = IndexMetadata { uid: name, primary_key: meta.primary_key, - created_at: created_at.unwrap_or(OffsetDateTime::now_utc()), - updated_at: updated_at.unwrap_or(OffsetDateTime::now_utc()), + created_at: created_at.unwrap_or_else(OffsetDateTime::now_utc), + updated_at: updated_at.unwrap_or_else(OffsetDateTime::now_utc), }; let ret = V4IndexReader {