]> git.proxmox.com Git - proxmox-apt.git/commitdiff
upgrade to edition 2021
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 18 Jan 2022 12:48:20 +0000 (13:48 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 3 Feb 2022 07:55:08 +0000 (08:55 +0100)
std::convert::{TryFrom, TryInto} are now part of the prelude.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Cargo.toml
rustfmt.toml
src/repositories/file.rs
src/repositories/file/list_parser.rs
src/repositories/file/sources_parser.rs
src/repositories/release.rs
src/repositories/repository.rs
src/repositories/standard.rs

index 2098127018496e0ea8ab97e8918abc760df22374..d2602d92287af74edfb5c0173a9fcea4fe7fb514 100644 (file)
@@ -5,7 +5,7 @@ authors = [
     "Fabian Ebner <f.ebner@proxmox.com>",
     "Proxmox Support Team <support@proxmox.com>",
 ]
-edition = "2018"
+edition = "2021"
 license = "AGPL-3"
 description = "Proxmox library for APT"
 homepage = "https://www.proxmox.com"
index 32a9786fa1c4a9e20997dcabc6330b56281780ba..3a26366d4da66e27c821e462eed5ef057a896684 100644 (file)
@@ -1 +1 @@
-edition = "2018"
+edition = "2021"
index fffc47cdd1b56231d607d0ec43d4307e6d05655f..3e975fce4ca0d7a3ae132dfdb0b499d03b050f7c 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::{TryFrom, TryInto};
 use std::fmt::Display;
 use std::path::{Path, PathBuf};
 
index 04c1729afc323720ad375c9a891b4cbc452501b4..deba41a3acc58242dff495fd3258347921ee2e52 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::TryInto;
 use std::io::BufRead;
 use std::iter::Iterator;
 
index e824f3d2b40f3b5c7c5145196300291994d09eee..dc9170d85ce61f5f1b547d3ca3b29b044babb45f 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::TryInto;
 use std::io::BufRead;
 use std::iter::Iterator;
 
index dbbc6996e85e064ed756b89f47bc9299c2cfd643..da391e589b42c6066a68e8e5040f0782ec30685e 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::{TryFrom, TryInto};
 use std::fmt::Display;
 use std::io::{BufRead, BufReader};
 
index ceaebefd762fb3ad9625f5978d67ccb857e46305..05b98ddd5b91229d3c81211869d4f3d37cdb87ca 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::TryFrom;
 use std::fmt::Display;
 use std::io::{BufRead, BufReader, Write};
 use std::path::PathBuf;
index b6044e609b3b88e9d302295b6fc18c1cc515587a..6b2cafd6239a180def3284fc1f6d080d09dd185c 100644 (file)
@@ -1,4 +1,3 @@
-use std::convert::TryFrom;
 use std::fmt::Display;
 
 use anyhow::{bail, Error};