Skip to content

Commit 5c8d37c

Browse files
CopilotCBenoit
andcommitted
style: apply nightly rustfmt formatting
Co-authored-by: CBenoit <3809077+CBenoit@users.noreply.github.com>
1 parent 64073ba commit 5c8d37c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ obj/
77
/output/
88
/config/
99
*.DotSettings
10-
.angular
10+
.angular

crates/win-api-wrappers/src/netmgmt.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ pub fn get_local_group_members(group_name: &U16CStr) -> anyhow::Result<Vec<Sid>>
102102
// - `group_members` must be freed by `NetApiBufferFree`.
103103
// - For level = 0, bufptr will be set to a pointer to a LOCALGROUP_MEMBERS_INFO_0.
104104
// - NetLocalGroupGetMembers returns a properly aligned pointer for LOCALGROUP_MEMBERS_INFO_0.
105-
#[expect(clippy::cast_ptr_alignment, reason = "NetLocalGroupGetMembers guarantees proper alignment")]
105+
#[expect(
106+
clippy::cast_ptr_alignment,
107+
reason = "NetLocalGroupGetMembers guarantees proper alignment"
108+
)]
106109
let group_members = unsafe { NetmgmtMemory::from_raw(group_members.cast::<LOCALGROUP_MEMBERS_INFO_0>()) };
107110

108111
// SAFETY:

crates/win-api-wrappers/src/utils.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,22 +258,19 @@ impl CommandLine {
258258
if chars.peek().is_some() {
259259
backslashes += 1
260260
} else {
261-
std::iter::repeat_n('\\', backslashes * 2)
262-
.for_each(|x| command_line.push(x));
261+
std::iter::repeat_n('\\', backslashes * 2).for_each(|x| command_line.push(x));
263262

264263
backslashes = 0;
265264
}
266265
}
267266
'"' => {
268-
std::iter::repeat_n('\\', backslashes * 2 + 1)
269-
.for_each(|x| command_line.push(x));
267+
std::iter::repeat_n('\\', backslashes * 2 + 1).for_each(|x| command_line.push(x));
270268

271269
command_line.push('"');
272270
backslashes = 0;
273271
}
274272
x => {
275-
std::iter::repeat_n('\\', backslashes)
276-
.for_each(|x| command_line.push(x));
273+
std::iter::repeat_n('\\', backslashes).for_each(|x| command_line.push(x));
277274

278275
command_line.push(x);
279276
backslashes = 0;

0 commit comments

Comments
 (0)