proxmox-time: drop TryFrom use statement

no longer needed with edition 2021

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2022-12-07 08:52:57 +01:00
parent 46a675830d
commit de6a59289a

View File

@ -79,7 +79,6 @@ pub fn gmtime(epoch: i64) -> Result<libc::tm, Error> {
/// Note: This panics if the SystemTime::now() returns values not
/// repesentable as i64 (should never happen).
pub fn epoch_i64() -> i64 {
use std::convert::TryFrom;
use std::time::{SystemTime, UNIX_EPOCH};
let now = SystemTime::now();