From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id F338461BB0 for ; Tue, 18 Jan 2022 13:49:02 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E281F29ECB for ; Tue, 18 Jan 2022 13:48:32 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 05A9D29EC1 for ; Tue, 18 Jan 2022 13:48:32 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id D1950416A1 for ; Tue, 18 Jan 2022 13:48:31 +0100 (CET) From: Fabian Ebner To: pve-devel@lists.proxmox.com Date: Tue, 18 Jan 2022 13:48:20 +0100 Message-Id: <20220118124822.87502-1-f.ebner@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.136 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [standard.rs, proxmox.com, file.rs, repository.rs, release.rs] Subject: [pve-devel] [PATCH proxmox-apt 1/3] upgrade to edition 2021 X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2022 12:49:03 -0000 std::convert::{TryFrom, TryInto} are now part of the prelude. Signed-off-by: Fabian Ebner --- Cargo.toml | 2 +- rustfmt.toml | 2 +- src/repositories/file.rs | 1 - src/repositories/file/list_parser.rs | 1 - src/repositories/file/sources_parser.rs | 1 - src/repositories/release.rs | 1 - src/repositories/repository.rs | 1 - src/repositories/standard.rs | 1 - 8 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2098127..d2602d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ authors = [ "Fabian Ebner ", "Proxmox Support Team ", ] -edition = "2018" +edition = "2021" license = "AGPL-3" description = "Proxmox library for APT" homepage = "https://www.proxmox.com" diff --git a/rustfmt.toml b/rustfmt.toml index 32a9786..3a26366 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1 +1 @@ -edition = "2018" +edition = "2021" diff --git a/src/repositories/file.rs b/src/repositories/file.rs index fffc47c..3e975fc 100644 --- a/src/repositories/file.rs +++ b/src/repositories/file.rs @@ -1,4 +1,3 @@ -use std::convert::{TryFrom, TryInto}; use std::fmt::Display; use std::path::{Path, PathBuf}; diff --git a/src/repositories/file/list_parser.rs b/src/repositories/file/list_parser.rs index 04c1729..deba41a 100644 --- a/src/repositories/file/list_parser.rs +++ b/src/repositories/file/list_parser.rs @@ -1,4 +1,3 @@ -use std::convert::TryInto; use std::io::BufRead; use std::iter::Iterator; diff --git a/src/repositories/file/sources_parser.rs b/src/repositories/file/sources_parser.rs index e824f3d..dc9170d 100644 --- a/src/repositories/file/sources_parser.rs +++ b/src/repositories/file/sources_parser.rs @@ -1,4 +1,3 @@ -use std::convert::TryInto; use std::io::BufRead; use std::iter::Iterator; diff --git a/src/repositories/release.rs b/src/repositories/release.rs index dbbc699..da391e5 100644 --- a/src/repositories/release.rs +++ b/src/repositories/release.rs @@ -1,4 +1,3 @@ -use std::convert::{TryFrom, TryInto}; use std::fmt::Display; use std::io::{BufRead, BufReader}; diff --git a/src/repositories/repository.rs b/src/repositories/repository.rs index ceaebef..05b98dd 100644 --- a/src/repositories/repository.rs +++ b/src/repositories/repository.rs @@ -1,4 +1,3 @@ -use std::convert::TryFrom; use std::fmt::Display; use std::io::{BufRead, BufReader, Write}; use std::path::PathBuf; diff --git a/src/repositories/standard.rs b/src/repositories/standard.rs index b6044e6..6b2cafd 100644 --- a/src/repositories/standard.rs +++ b/src/repositories/standard.rs @@ -1,4 +1,3 @@ -use std::convert::TryFrom; use std::fmt::Display; use anyhow::{bail, Error}; -- 2.30.2