Skip to content

Commit

Permalink
keep latest clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Feb 12, 2024
1 parent 6bb8ad0 commit 573a916
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions iot_verifier/src/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ impl Meta {
.fetch_optional(executor)
.await?
.and_then(|v| {
v.parse::<u64>().map_or_else(
|_| None,
|ts| ts.to_timestamp_millis().map_or_else(|_| None, Some),
)
v.parse::<u64>()
.map_or_else(|_| None, |ts| ts.to_timestamp_millis().ok())
});
Ok(last_timestamp)
}
Expand Down

0 comments on commit 573a916

Please sign in to comment.