Skip to content

Commit 5f33c13

Browse files
chore(procmgr): rustfmt runtime_user Windows test
Apply rustfmt so Bazel rustfmt_checks pass in CI.
1 parent ea2f91e commit 5f33c13

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

pkg/procmgr/rust/src/platform/windows/runtime_user.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,14 @@ mod tests {
184184
// Use a built-in local SAM account so this stays deterministic on
185185
// domain-joined CI hosts (where USERNAME is a domain principal).
186186
let username = "Administrator";
187-
let sid = match lookup_account_sid(".", username)
188-
.or_else(|_| lookup_account_sid("", username))
189-
{
190-
Ok(sid) => sid,
191-
Err(e) => {
192-
eprintln!("skipping: built-in Administrator not available: {e:#}");
193-
return;
194-
}
195-
};
187+
let sid =
188+
match lookup_account_sid(".", username).or_else(|_| lookup_account_sid("", username)) {
189+
Ok(sid) => sid,
190+
Err(e) => {
191+
eprintln!("skipping: built-in Administrator not available: {e:#}");
192+
return;
193+
}
194+
};
196195

197196
if !super::super::local_account::is_local_account(&sid).unwrap_or(false) {
198197
eprintln!("skipping: Administrator is not a local SAM account on this host");

0 commit comments

Comments
 (0)