[pdm-devel] [PATCH proxmox-datacenter-manager 2/7] simplify if-else block
Maximiliano Sandoval
m.sandoval at proxmox.com
Mon Dec 29 17:18:37 CET 2025
This was triggering the obfuscated_if_else clippy warning.
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
cli/admin/src/remotes.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cli/admin/src/remotes.rs b/cli/admin/src/remotes.rs
index d1a3edee..edd3fd82 100644
--- a/cli/admin/src/remotes.rs
+++ b/cli/admin/src/remotes.rs
@@ -135,7 +135,7 @@ async fn get_remote_subscriptions(
RemoteSubscriptionState::Mixed => "Mixed",
RemoteSubscriptionState::Active => "Active",
};
- let ln = first.then_some("").unwrap_or("\n");
+ let ln = if first { "" } else { "\n" };
first = false;
println!("{ln}Remote {} subscription status: {state}", entry.remote);
if let Some(error) = entry.error {
--
2.47.3
More information about the pdm-devel
mailing list