From bf68d540b8faadafd8f803865c59f545fcaa348e Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Wed, 26 Jun 2024 14:43:33 +0200 Subject: [PATCH] time-api: remove redundant field names Fixes the clippy warning: warning: redundant field names in struct initialization --> proxmox-time-api/src/time_impl.rs:53:9 | 53 | localtime: localtime, | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `localtime` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names Signed-off-by: Maximiliano Sandoval --- proxmox-time-api/src/time_impl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-time-api/src/time_impl.rs b/proxmox-time-api/src/time_impl.rs index 3d5aee6f..a548c717 100644 --- a/proxmox-time-api/src/time_impl.rs +++ b/proxmox-time-api/src/time_impl.rs @@ -49,7 +49,7 @@ pub fn get_server_time_info() -> Result { Ok(ServerTimeInfo { timezone: read_etc_localtime()?, - time: time, - localtime: localtime, + time, + localtime, }) }