* [pve-devel] [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition
@ 2025-03-10 9:39 Maximiliano Sandoval
2025-03-10 9:39 ` [pve-devel] [PATCH proxmox-perl-rs 2/3] pmg: " Maximiliano Sandoval
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Maximiliano Sandoval @ 2025-03-10 9:39 UTC (permalink / raw)
To: pve-devel
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
pve-rs/Cargo.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pve-rs/Cargo.toml b/pve-rs/Cargo.toml
index 64a7e92..81a8396 100644
--- a/pve-rs/Cargo.toml
+++ b/pve-rs/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.9.2"
description = "PVE parts which have been ported to Rust"
homepage = "https://www.proxmox.com"
authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2021"
+edition = "2024"
license = "AGPL-3"
repository = "https://git.proxmox.com/?p=proxmox.git"
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [pve-devel] [PATCH proxmox-perl-rs 2/3] pmg: Port to 2024 edition
2025-03-10 9:39 [pve-devel] [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition Maximiliano Sandoval
@ 2025-03-10 9:39 ` Maximiliano Sandoval
2025-03-10 9:39 ` [pve-devel] [PATCH proxmox-perl-rs 3/3] pve: tfa: write char comparison more succinctly Maximiliano Sandoval
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Maximiliano Sandoval @ 2025-03-10 9:39 UTC (permalink / raw)
To: pve-devel
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
pmg-rs/Cargo.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pmg-rs/Cargo.toml b/pmg-rs/Cargo.toml
index 2499f40..a6f4bb1 100644
--- a/pmg-rs/Cargo.toml
+++ b/pmg-rs/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.7.7"
description = "PMG parts which have been ported to rust"
homepage = "https://www.proxmox.com"
authors = ["Proxmox Support Team <support@proxmox.com>"]
-edition = "2021"
+edition = "2024"
license = "AGPL-3"
repository = "https://git.proxmox.com/?p=proxmox.git"
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [pve-devel] [PATCH proxmox-perl-rs 3/3] pve: tfa: write char comparison more succinctly
2025-03-10 9:39 [pve-devel] [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition Maximiliano Sandoval
2025-03-10 9:39 ` [pve-devel] [PATCH proxmox-perl-rs 2/3] pmg: " Maximiliano Sandoval
@ 2025-03-10 9:39 ` Maximiliano Sandoval
2025-03-10 10:16 ` [pve-devel] [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition Maximiliano Sandoval
2025-03-10 10:18 ` [pve-devel] applied-series: " Wolfgang Bumiller
3 siblings, 0 replies; 5+ messages in thread
From: Maximiliano Sandoval @ 2025-03-10 9:39 UTC (permalink / raw)
To: pve-devel
Fixes the manual_pattern_char_comparison clippy lint.
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
pve-rs/src/tfa.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pve-rs/src/tfa.rs b/pve-rs/src/tfa.rs
index 66dca3d..2cd7396 100644
--- a/pve-rs/src/tfa.rs
+++ b/pve-rs/src/tfa.rs
@@ -726,7 +726,7 @@ fn decode_old_oath_entry(
let mut out = Vec::new();
let keys = take_json_string(&mut obj, "keys", "oath")?;
- for key in keys.split(|c| c == ',' || c == ';' || c == ' ') {
+ for key in keys.split([',', ';', ' ']) {
let key = trim_ascii_whitespace(key.as_bytes());
if key.is_empty() {
continue;
@@ -765,7 +765,7 @@ fn decode_old_yubico_entry(data: JsonValue) -> Result<Vec<String>, Error> {
let mut out = Vec::new();
let keys = take_json_string(&mut obj, "keys", "yubico")?;
- for key in keys.split(|c| c == ',' || c == ';' || c == ' ') {
+ for key in keys.split([',', ';', ' ']) {
let key = trim_ascii_whitespace(key.as_bytes());
if key.is_empty() {
continue;
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [pve-devel] [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition
2025-03-10 9:39 [pve-devel] [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition Maximiliano Sandoval
2025-03-10 9:39 ` [pve-devel] [PATCH proxmox-perl-rs 2/3] pmg: " Maximiliano Sandoval
2025-03-10 9:39 ` [pve-devel] [PATCH proxmox-perl-rs 3/3] pve: tfa: write char comparison more succinctly Maximiliano Sandoval
@ 2025-03-10 10:16 ` Maximiliano Sandoval
2025-03-10 10:18 ` [pve-devel] applied-series: " Wolfgang Bumiller
3 siblings, 0 replies; 5+ messages in thread
From: Maximiliano Sandoval @ 2025-03-10 10:16 UTC (permalink / raw)
To: Maximiliano Sandoval; +Cc: pve-devel
Maximiliano Sandoval <m.sandoval@proxmox.com> writes:
> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
I forgot to run rustfmt after switching to 2024 🙊.
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [pve-devel] applied-series: [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition
2025-03-10 9:39 [pve-devel] [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition Maximiliano Sandoval
` (2 preceding siblings ...)
2025-03-10 10:16 ` [pve-devel] [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition Maximiliano Sandoval
@ 2025-03-10 10:18 ` Wolfgang Bumiller
3 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Bumiller @ 2025-03-10 10:18 UTC (permalink / raw)
To: Maximiliano Sandoval; +Cc: pve-devel
applied and ran cargo fmt, thanks
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-03-10 10:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-10 9:39 [pve-devel] [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition Maximiliano Sandoval
2025-03-10 9:39 ` [pve-devel] [PATCH proxmox-perl-rs 2/3] pmg: " Maximiliano Sandoval
2025-03-10 9:39 ` [pve-devel] [PATCH proxmox-perl-rs 3/3] pve: tfa: write char comparison more succinctly Maximiliano Sandoval
2025-03-10 10:16 ` [pve-devel] [PATCH proxmox-perl-rs 1/3] pve: Port to 2024 edition Maximiliano Sandoval
2025-03-10 10:18 ` [pve-devel] applied-series: " Wolfgang Bumiller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal