File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
crates/win-api-wrappers/src Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 77/output /
88/config /
99* .DotSettings
10- .angular
10+ .angular
Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments