From 8f25f08ef51fd52f365dd6b4fa2094711e252250 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 30 Oct 2023 21:39:46 +0100 Subject: [PATCH] clippy --- remote/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/remote/lib.rs b/remote/lib.rs index 0989298..1320967 100644 --- a/remote/lib.rs +++ b/remote/lib.rs @@ -493,12 +493,12 @@ impl Database for Remote

{ for mutation in write.mutations { let expire_at_ms = mutation .expire_at - .and_then(|t| { + .map(|t| { let ts = t.timestamp_millis(); if ts <= 0 { - Some(1) + 1 } else { - Some(ts) + ts } }) .unwrap_or(0);