]> git.proxmox.com Git - proxmox-backup.git/commitdiff
tree-wide: bump edition to 2021
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 6 Dec 2022 10:19:41 +0000 (11:19 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 6 Dec 2022 12:31:01 +0000 (13:31 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
39 files changed:
Cargo.toml
pbs-api-types/Cargo.toml
pbs-api-types/src/tape/drive.rs
pbs-api-types/src/userid.rs
pbs-buildcfg/Cargo.toml
pbs-client/Cargo.toml
pbs-client/src/backup_repo.rs
pbs-client/src/pxar/extract.rs
pbs-client/src/pxar/tools.rs
pbs-client/src/tools/key_source.rs
pbs-config/Cargo.toml
pbs-config/src/network/mod.rs
pbs-datastore/Cargo.toml
pbs-datastore/src/backup_info.rs
pbs-datastore/src/catalog.rs
pbs-datastore/src/data_blob.rs
pbs-datastore/src/manifest.rs
pbs-fuse-loop/Cargo.toml
pbs-pxar-fuse/src/lib.rs
pbs-tape/Cargo.toml
pbs-tape/src/bin/pmt.rs
pbs-tape/src/sg_tape.rs
pbs-tape/src/sg_tape/mam.rs
pbs-tools/Cargo.toml
proxmox-backup-banner/Cargo.toml
proxmox-backup-client/Cargo.toml
proxmox-backup-client/src/key.rs
proxmox-file-restore/Cargo.toml
proxmox-restore-daemon/Cargo.toml
proxmox-rrd/Cargo.toml
pxar-bin/Cargo.toml
src/api2/access/openid.rs
src/api2/node/certificates.rs
src/api2/pull.rs
src/api2/tape/restore.rs
src/server/pull.rs
src/tape/drive/lto/mod.rs
src/tape/media_catalog.rs
src/traffic_control_cache.rs

index de83e1fa3727c23ba0cfea4bfb12f25875c76327..8ee48127e16cf35b9d2c59a5edd724c876cc1961 100644 (file)
@@ -11,7 +11,7 @@ authors = [
     "Wolfgang Bumiller <w.bumiller@proxmox.com>",
     "Proxmox Support Team <support@proxmox.com>",
 ]
-edition = "2018"
+edition = "2021"
 license = "AGPL-3"
 description = "Proxmox Backup"
 homepage = "https://www.proxmox.com"
index 8f897d5dd81b76f4ff57789f718051c3738f8030..61d37d77f617ef5a2bfeb1c3e1148778a40180e2 100644 (file)
@@ -2,7 +2,7 @@
 name = "pbs-api-types"
 version = "0.1.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 description = "general API type helpers for PBS"
 
 [dependencies]
index c8cb077c3462ce90465f26e7db5b64db9b1d5949..d841505a2ec0d8ed01e1918d5003e08c8c3699ef 100644 (file)
@@ -1,6 +1,4 @@
 //! Types for tape drive API
-use std::convert::TryFrom;
-
 use anyhow::{bail, Error};
 use serde::{Deserialize, Serialize};
 
index 996e96e57e378661bcf51f6e25885e8a7cee4ea4..052e66eda006e31beffb2a167ce449449998eccf 100644 (file)
@@ -22,7 +22,6 @@
 //! compared with each other, as in those cases the comparison has meaning.
 
 use std::borrow::Borrow;
-use std::convert::TryFrom;
 use std::fmt;
 
 use anyhow::{bail, format_err, Error};
index 7f43904ac13ab3944965a0f931ea40e739d794f3..72545c15e9c717aa7aeebfc29eeedb5e771b74c4 100644 (file)
@@ -2,7 +2,7 @@
 name = "pbs-buildcfg"
 version = "2.3.1"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 description = "macros used for pbs related paths such as configdir and rundir"
 build = "build.rs"
 
index 40b6bc991e8590bd1adea732ec1838f31d9e25d1..54dfe7fd52838f676dda81f99963d02807ae59d6 100644 (file)
@@ -2,7 +2,7 @@
 name = "pbs-client"
 version = "0.1.0"
 authors = ["Wolfgang Bumiller <w.bumiller@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 description = "The main proxmox backup client crate"
 
 [dependencies]
index 02736e39e1a53ecb2e15c6360b410644f1c1c0f6..4f251380626a6c59deaca27667fdbdd664f357af 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::TryFrom;
 use std::fmt;
 
 use anyhow::{format_err, Error};
index 2fc810a0ab285d325a41e77c41ea520b2fcb6082..f6c1991fe7908bd3ec9f5c8f2755e7e2b2543e45 100644 (file)
@@ -1,7 +1,6 @@
 //! Code for extraction of pxar contents onto the file system.
 
 use std::collections::HashMap;
-use std::convert::TryFrom;
 use std::ffi::{CStr, CString, OsStr, OsString};
 use std::io;
 use std::os::unix::ffi::OsStrExt;
index ddb14edaff2098ee66fea81b4b95031f291bdc04..844a0f732a39c7a2519827cb5433f892ef31dd63 100644 (file)
@@ -1,6 +1,5 @@
 //! Some common methods used within the pxar code.
 
-use std::convert::TryFrom;
 use std::ffi::OsStr;
 use std::os::unix::ffi::OsStrExt;
 use std::path::Path;
index f7a8c7fb6eb897ea1ecd0bb0f4d8f129491eeea2..0f78d0d16ffb10ecb63309c01d08356a2166c5d1 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::TryFrom;
 use std::io::Read;
 use std::os::unix::io::{FromRawFd, RawFd};
 use std::path::PathBuf;
index d09070a8400b7f23f9fb4db3907df52485f7f2a5..dca52e40334c044c6586302bda20de5e492aadb7 100644 (file)
@@ -2,7 +2,7 @@
 name = "pbs-config"
 version = "0.1.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 description = "Configuration file management for PBS"
 
 [dependencies]
index 66975391edb028bd053c63cb7d700cad161617e9..a05a554d034ef2889c6e4e43aa2fc53e45218315 100644 (file)
@@ -231,8 +231,6 @@ pub struct NetworkConfig {
     order: Vec<NetworkOrderEntry>,
 }
 
-use std::convert::TryFrom;
-
 impl TryFrom<NetworkConfig> for String {
     type Error = Error;
 
index 81d70b8108001bea894af94e4a84d6750d4fb76e..7bf7a91aa13af17c94c2f78638f3257a4e321ad7 100644 (file)
@@ -2,7 +2,7 @@
 name = "pbs-datastore"
 version = "0.1.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 description = "low level pbs data storage access"
 
 [dependencies]
index c3ce7a1d89ce08afa2475593f3520b8eff5b8c8f..128315ba3f00b871ca5c814946b5d124e4076c9e 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::TryFrom;
 use std::fmt;
 use std::os::unix::io::RawFd;
 use std::path::PathBuf;
index 45f90bf9e09318b6b3dbb28c192c35b944d4cef8..949e25b84f01676d42e05c678dc6b9519e4e325c 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::TryFrom;
 use std::ffi::{CStr, CString, OsStr};
 use std::fmt;
 use std::io::{Read, Seek, SeekFrom, Write};
index 1b0abd5f290f7368f086b9ec704aa3a6238b3715..9c47bd4540898429f531ef683058ace8c90a09be 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::TryInto;
 use std::io::Write;
 
 use anyhow::{bail, Error};
index 6ee0cb3cfec04fa15280755e2d9e4ef0c2d4262c..640fd8d2899572505d5700c054311612eb7bcfb3 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::TryFrom;
 use std::path::Path;
 
 use anyhow::{bail, format_err, Error};
index 17f446455066edf836528d4b41bcbb3aa875d991..12ad6bf68f0eeca010d5bd2e1ec9cbf2c93a8a42 100644 (file)
@@ -2,7 +2,7 @@
 name = "pbs-fuse-loop"
 version = "0.1.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 description = "fuse and loop device helpers"
 
 [dependencies]
index ee0870d68798f1f54ffb4b20c1453ba4b13310b4..98d28c57992efd348187b8d9366bb62e1b345ec9 100644 (file)
@@ -1,7 +1,6 @@
 //! Asynchronous fuse implementation.
 
 use std::collections::BTreeMap;
-use std::convert::TryFrom;
 use std::ffi::{OsStr, OsString};
 use std::future::Future;
 use std::io;
index 1eda94768f52a41c391e530fcec03aeec32d98bb..e10f644960265486ad7ec4ed2c8d733213df4fd4 100644 (file)
@@ -2,7 +2,7 @@
 name = "pbs-tape"
 version = "0.1.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 description = "LTO tape support"
 
 [dependencies]
index adf95db250d6ace387d98c068b406c0f11b22285..4a5e08e5ea48612e5ac1ef3c672463c4a4c97ff4 100644 (file)
@@ -12,8 +12,6 @@
 /// - support tape alert flags
 /// - support volume statistics
 /// - read cartridge memory
-use std::convert::TryInto;
-
 use anyhow::{bail, Error};
 use serde_json::Value;
 
index 0097ba8fa136fb39bbb485439e24b38d812fc050..7ad94d9dcc4e6e4666939724ded6dee01892225e 100644 (file)
@@ -1,5 +1,3 @@
-use std::convert::TryFrom;
-use std::convert::TryInto;
 use std::fs::{File, OpenOptions};
 use std::os::unix::fs::OpenOptionsExt;
 use std::os::unix::io::AsRawFd;
index e37c9f14ad30211175fbf8a7592c19a3e4d530e6..634b5a29b412638f8085ceeea5f8e9a0cc086e11 100644 (file)
@@ -1,5 +1,4 @@
 use std::collections::HashMap;
-use std::convert::TryInto;
 use std::os::unix::io::AsRawFd;
 
 use anyhow::{bail, format_err, Error};
index 8634d791a5b1d4e185eb36504cc583310b4cc261..562f084d3ccc6a657a57e465a0562e1945d2fe6f 100644 (file)
@@ -2,7 +2,7 @@
 name = "pbs-tools"
 version = "0.1.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 description = "common tools used throughout pbs"
 
 # This must not depend on any subcrates more closely related to pbs itself.
index 23ecb98ee5310970b006120a009a103808b40628..c2a5b868580b77ae5437eacca2f3d1de78f73280 100644 (file)
@@ -2,7 +2,7 @@
 name = "proxmox-backup-banner"
 version = "0.1.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 
 [dependencies]
 anyhow = "1"
index 518b2004b0041e32f2851becb17ed70753aefbb5..76c680038a9999d278d67d2dd870c89ab0c063b3 100644 (file)
@@ -2,7 +2,7 @@
 name = "proxmox-backup-client"
 version = "0.1.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 
 [dependencies]
 anyhow = "1.0"
index c7997ea726033ba34f4fc86b073a4ba752600e90..ad9cb5634e0802d4090631446ed5ae738b35e98f 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::TryFrom;
 use std::path::PathBuf;
 
 use anyhow::{bail, format_err, Error};
index 7738b72eef8ee0d7dcc70e0537df7d99eda25eb8..e470848b02e67ccfbf9eb47af09a5e60adc6d40e 100644 (file)
@@ -2,7 +2,7 @@
 name = "proxmox-file-restore"
 version = "0.1.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 
 [dependencies]
 anyhow = "1.0"
index 8b47183aae88decbade75f4f2e4cc62aa92eef1b..ccbed84bdceec4fb9f0a4570c3811ffaf6ab44c8 100644 (file)
@@ -2,7 +2,7 @@
 name = "proxmox-restore-daemon"
 version = "0.1.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 description = "Proxmox Restore Daemon"
 
 [dependencies]
index c9caf7d5e923898f54ee06b91d8d6f0c25378beb..4e9bb317218c14a6087a1854d1d1a56c2cfcc41e 100644 (file)
@@ -2,7 +2,7 @@
 name = "proxmox-rrd"
 version = "0.1.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 license = "AGPL-3"
 description = "Simple RRD database implementation."
 
index f025e02c56c8ab7415156815b7f76adcab88686f..bb066a532c6d7e4907feda8636d43d118eec0788 100644 (file)
@@ -2,7 +2,7 @@
 name = "pxar-bin"
 version = "0.1.0"
 authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 
 [[bin]]
 name = "pxar"
index 3bc4df8eca9b53f0e7001d0a31c69b9a1eff3843..c6d59de01826540353e7099bc36451f21c4b8c2d 100644 (file)
@@ -1,6 +1,4 @@
 //! OpenID redirect/login API
-use std::convert::TryFrom;
-
 use anyhow::{bail, format_err, Error};
 use serde_json::{json, Value};
 
index 361790dc989f0fb11ebfe23059d3e1f4a25d1ea1..d514001a467b9642b0f748e5c7038999b9dd009b 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::TryFrom;
 use std::sync::Arc;
 use std::time::Duration;
 
index 193f28fe5b249943a97aa9b0eb6b76a1fd7d010d..b2473ec8640b814fc9bc311bb367de215aae85b0 100644 (file)
@@ -1,6 +1,4 @@
 //! Sync datastore from remote server
-use std::convert::TryFrom;
-
 use anyhow::{format_err, Error};
 use futures::{future::FutureExt, select};
 
index dc4842a752c4051a947421832d612c8437a1eb70..43d344735d353a583b55548c54489679bd33fd30 100644 (file)
@@ -1,5 +1,4 @@
 use std::collections::{BTreeMap, HashMap, HashSet};
-use std::convert::TryFrom;
 use std::ffi::OsStr;
 use std::io::{Seek, SeekFrom};
 use std::path::{Path, PathBuf};
index 86d2767d06d724c918cece70118dda1d078cf932..65eedf2c973200a2cf9c15ee1118dca274163c54 100644 (file)
@@ -1,7 +1,6 @@
 //! Sync datastore from remote server
 
 use std::collections::{HashMap, HashSet};
-use std::convert::TryFrom;
 use std::io::{Seek, SeekFrom};
 use std::sync::atomic::{AtomicUsize, Ordering};
 use std::sync::{Arc, Mutex};
index 88f99c550f139827c64be965e0b08de935c8b6eb..668784117de340ca76702e97ea1d84ca345abd60 100644 (file)
@@ -11,7 +11,6 @@
 //!
 //! - unability to detect EOT (you just get EIO)
 
-use std::convert::TryInto;
 use std::fs::File;
 use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
 
index 324311d54831294ffc7dfe760b5e0309faf74143..3b182a8d860eb746d1d26a7cfe27107d33a39b5b 100644 (file)
@@ -1,5 +1,4 @@
 use std::collections::{HashMap, HashSet};
-use std::convert::TryFrom;
 use std::fs::File;
 use std::io::{BufReader, Read, Seek, SeekFrom, Write};
 use std::os::unix::io::AsRawFd;
index 01318fd8275f3d100ce86330ac66eb96ebb97de8..c188069f674f847e370a50df31ac57d0ebb6fd65 100644 (file)
@@ -1,7 +1,6 @@
 //! Traffic control implementation
 
 use std::collections::HashMap;
-use std::convert::TryInto;
 use std::net::{IpAddr, Ipv4Addr, SocketAddr};
 use std::sync::{Arc, Mutex};
 use std::time::Instant;