diff options
author | initard <solo@softwareag.com> | 2022-06-11 18:48:34 +0100 |
---|---|---|
committer | initard <solo@softwareag.com> | 2022-06-16 15:18:10 +0100 |
commit | f9a0601a00c86a4383c8805e830960946a86219a (patch) | |
tree | b55f2d9bd61adcf7e4c0f7d8f01edf9ca7bf2539 /crates/core | |
parent | ff9b60b37fa10970ea7228763f08d5176b64f354 (diff) |
c8y_api fixing clippy warnings #825
Signed-off-by: initard <solo@softwareag.com>
Diffstat (limited to 'crates/core')
-rw-r--r-- | crates/core/c8y_api/src/http_proxy.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/core/c8y_api/src/http_proxy.rs b/crates/core/c8y_api/src/http_proxy.rs index b9f78e32..3d1288d6 100644 --- a/crates/core/c8y_api/src/http_proxy.rs +++ b/crates/core/c8y_api/src/http_proxy.rs @@ -283,7 +283,7 @@ impl JwtAuthHttpProxy { C8yCreateEvent::new( Some(c8y_managed_object), event_type.clone(), - event_time.unwrap_or(OffsetDateTime::now_utc()), + event_time.unwrap_or_else(OffsetDateTime::now_utc), event_text.unwrap_or(event_type), HashMap::new(), ) |