[pbs-devel] [PATCH proxmox 4/8] deb-version: remove unnecesary vec! call
Maximiliano Sandoval
m.sandoval at proxmox.com
Tue Dec 9 11:52:44 CET 2025
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
proxmox-deb-version/src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxmox-deb-version/src/lib.rs b/proxmox-deb-version/src/lib.rs
index e17c0441..9a51e799 100644
--- a/proxmox-deb-version/src/lib.rs
+++ b/proxmox-deb-version/src/lib.rs
@@ -477,7 +477,7 @@ mod tests {
#[test]
fn test_manpage_tilde_sequence() {
// from deb-version manpage: ~~, ~~a, ~, (empty), a are in sorted order
- let versions = vec!["~~", "~~a", "~", "", "a"];
+ let versions = ["~~", "~~a", "~", "", "a"];
for i in 0..versions.len() - 1 {
let result = debian_cmp_str(versions[i], versions[i + 1]);
assert_eq!(
--
2.47.3
More information about the pbs-devel
mailing list