Skip to content

Commit a066860

Browse files
committed
chore: cargo fmt
1 parent 0a34647 commit a066860

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

src/ami.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -507,12 +507,7 @@ impl Redfish for Bmc {
507507
("LockdownBiosUpgradeDowngrade", value),
508508
]);
509509
let config_bmc_url = format!("Managers/{}/Oem/ConfigBMC", self.s.manager_id());
510-
return self
511-
.s
512-
.client
513-
.post(&config_bmc_url, body)
514-
.await
515-
.map(|_| ());
510+
return self.s.client.post(&config_bmc_url, body).await.map(|_| ());
516511
}
517512

518513
// LenovoGB300 has neither the OEM ConfigBMC endpoint nor

src/network.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,20 @@ impl RedfishClientPool {
271271
let mut is_gb300 = false;
272272
for id in s.get_systems().await? {
273273
let (_, system): (_, ComputerSystem) = s.client.get(&format!("Systems/{id}")).await?;
274-
if system.manufacturer.as_deref().unwrap_or_default().contains("Lenovo") {
274+
if system
275+
.manufacturer
276+
.as_deref()
277+
.unwrap_or_default()
278+
.contains("Lenovo")
279+
{
275280
is_lenovo = true;
276281
}
277-
if system.model.as_deref().unwrap_or_default().contains("GB300") {
282+
if system
283+
.model
284+
.as_deref()
285+
.unwrap_or_default()
286+
.contains("GB300")
287+
{
278288
is_gb300 = true;
279289
}
280290
if is_lenovo && is_gb300 {

0 commit comments

Comments
 (0)