public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH offline-mirror 1/3] mirror: remove redundant ref in if-let pattern
@ 2025-02-24  9:33 Maximiliano Sandoval
  2025-02-24  9:33 ` [pbs-devel] [PATCH offline-mirror 2/3] cargo: update to edition 2024 Maximiliano Sandoval
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Maximiliano Sandoval @ 2025-02-24  9:33 UTC (permalink / raw)
  To: pbs-devel

Discovered by `cargo fix --edition`.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 src/mirror.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mirror.rs b/src/mirror.rs
index 40ee120..b56c33c 100644
--- a/src/mirror.rs
+++ b/src/mirror.rs
@@ -539,7 +539,7 @@ fn fetch_binary_packages(
         let mut skip_bytes = 0usize;
 
         for package in references.files {
-            if let Some(ref sections) = &config.skip.skip_sections {
+            if let Some(sections) = &config.skip.skip_sections {
                 if sections.iter().any(|section| {
                     package.section == *section
                         || package.section == format!("{component}/{section}")
@@ -654,7 +654,7 @@ fn fetch_source_packages(
         let mut skip_count = 0usize;
         let mut skip_bytes = 0usize;
         for package in references.source_packages {
-            if let Some(ref sections) = &config.skip.skip_sections {
+            if let Some(sections) = &config.skip.skip_sections {
                 if sections.iter().any(|section| {
                     package.section.as_ref() == Some(section)
                         || package.section == Some(format!("{component}/{section}"))
-- 
2.39.5



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-03 12:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-24  9:33 [pbs-devel] [PATCH offline-mirror 1/3] mirror: remove redundant ref in if-let pattern Maximiliano Sandoval
2025-02-24  9:33 ` [pbs-devel] [PATCH offline-mirror 2/3] cargo: update to edition 2024 Maximiliano Sandoval
2025-02-24  9:33 ` [pbs-devel] [PATCH offline-mirror 3/3] cargo: run fmt Maximiliano Sandoval
2025-03-03 12:30 ` [pbs-devel] applied-series: [PATCH offline-mirror 1/3] mirror: remove redundant ref in if-let pattern Fabian Grünbichler

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