fix(fmt): collapse single-expression restart count closure per rustfmt
Some checks failed
PR Review Automation / review (pull_request) Has been cancelled
Test / frontend-tests (pull_request) Successful in 1m46s
Test / frontend-typecheck (pull_request) Successful in 1m55s
Test / rust-fmt-check (pull_request) Successful in 12m2s
Test / rust-clippy (pull_request) Successful in 13m48s
Test / rust-tests (pull_request) Successful in 15m17s
Some checks failed
PR Review Automation / review (pull_request) Has been cancelled
Test / frontend-tests (pull_request) Successful in 1m46s
Test / frontend-typecheck (pull_request) Successful in 1m55s
Test / rust-fmt-check (pull_request) Successful in 12m2s
Test / rust-clippy (pull_request) Successful in 13m48s
Test / rust-tests (pull_request) Successful in 15m17s
This commit is contained in:
parent
f993672b78
commit
06d29b8042
@ -1169,11 +1169,7 @@ fn parse_pods_json(json_str: &str) -> Result<Vec<PodInfo>, String> {
|
||||
.map(|container_statuses| {
|
||||
container_statuses
|
||||
.iter()
|
||||
.map(|c| {
|
||||
c.get("restartCount")
|
||||
.and_then(|r| r.as_u64())
|
||||
.unwrap_or(0) as u32
|
||||
})
|
||||
.map(|c| c.get("restartCount").and_then(|r| r.as_u64()).unwrap_or(0) as u32)
|
||||
.sum::<u32>()
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user