all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Fabian Ebner <f.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH proxmox-apt 1/3] upgrade to edition 2021
Date: Tue, 18 Jan 2022 13:48:20 +0100	[thread overview]
Message-ID: <20220118124822.87502-1-f.ebner@proxmox.com> (raw)

std::convert::{TryFrom, TryInto} are now part of the prelude.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
---
 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 <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"
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





             reply	other threads:[~2022-01-18 12:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-18 12:48 Fabian Ebner [this message]
2022-01-18 12:48 ` [pve-devel] [PATCH proxmox-apt 2/3] clippy fixes Fabian Ebner
2022-01-18 12:48 ` [pve-devel] [PATCH proxmox-apt 3/3] check suites: add special check for Debian security repository Fabian Ebner
2022-02-03  8:02 ` [pve-devel] applied-series: [PATCH proxmox-apt 1/3] upgrade to edition 2021 Wolfgang Bumiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220118124822.87502-1-f.ebner@proxmox.com \
    --to=f.ebner@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal