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 <m.sandoval@proxmox.com>
This commit is contained in:
parent
18dda8106b
commit
bf68d540b8
@ -49,7 +49,7 @@ pub fn get_server_time_info() -> Result<ServerTimeInfo, Error> {
|
||||
|
||||
Ok(ServerTimeInfo {
|
||||
timezone: read_etc_localtime()?,
|
||||
time: time,
|
||||
localtime: localtime,
|
||||
time,
|
||||
localtime,
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user