From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH offline-mirror 1/3] mirror: remove redundant ref in if-let pattern
Date: Mon, 24 Feb 2025 10:33:23 +0100 [thread overview]
Message-ID: <20250224093325.106165-1-m.sandoval@proxmox.com> (raw)
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
next reply other threads:[~2025-02-24 9:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-24 9:33 Maximiliano Sandoval [this message]
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
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=20250224093325.106165-1-m.sandoval@proxmox.com \
--to=m.sandoval@proxmox.com \
--cc=pbs-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.