[pdm-devel] [PATCH proxmox-datacenter-manager 1/1] server: api resources: run rustfmt

Stefan Hanreich s.hanreich at proxmox.com
Tue Oct 28 10:57:34 CET 2025


Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
 server/src/api/resources.rs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/server/src/api/resources.rs b/server/src/api/resources.rs
index 0a50539..d9a2e5a 100644
--- a/server/src/api/resources.rs
+++ b/server/src/api/resources.rs
@@ -465,7 +465,10 @@ pub async fn get_status(
                     if r.maintenance.is_none() {
                         counts.pbs_datastores.online += 1;
                     } else {
-                        *counts.pbs_datastores.under_maintenance.get_or_insert_default() += 1;
+                        *counts
+                            .pbs_datastores
+                            .under_maintenance
+                            .get_or_insert_default() += 1;
                     }
                     if r.usage > PBS_DATASTORE_HIGH_USAGE_THRESHOLD {
                         *counts.pbs_datastores.high_usage.get_or_insert_default() += 1;
-- 
2.47.3




More information about the pdm-devel mailing list