]> git.proxmox.com Git - proxmox.git/commitdiff
schema: bump edition to 2021
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 14 Feb 2022 08:45:38 +0000 (09:45 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 14 Feb 2022 08:45:38 +0000 (09:45 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-schema/Cargo.toml
proxmox-schema/src/upid.rs

index 76a4ad5c89e23ab69f49d0e6bd580bd71a710310..6b39d52a6987e8a4890c7f128054da4b673bf663 100644 (file)
@@ -2,7 +2,7 @@
 name = "proxmox-schema"
 version = "1.2.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 license = "AGPL-3"
 description = "proxmox api schema and validation"
 
index 22d878b6edc256eb41f3e9599e99d7b0eb94181c..6b20f9d8ed3c3bdfd322b2978271d0dcc69480d3 100644 (file)
@@ -279,7 +279,6 @@ mod upid_impl {
     // Copied as this is the only `proxmox-time` dependency in this crate
     // and this crate has MUCH fewer dependencies without it
     fn epoch_i64() -> i64 {
-        use std::convert::TryFrom;
         use std::time::{SystemTime, UNIX_EPOCH};
 
         let now = SystemTime::now();