diff --git a/crates/tests/calling_convention/tests/win.rs b/crates/tests/calling_convention/tests/win.rs index 1a91f091cb..eae2d52ca5 100644 --- a/crates/tests/calling_convention/tests/win.rs +++ b/crates/tests/calling_convention/tests/win.rs @@ -6,10 +6,7 @@ use windows::{ fn calling_convention() { unsafe { // This function requires cdecl on x86. - assert_eq!( - LdapMapErrorToWin32(LDAP_BUSY), - ERROR_BUSY - ); + assert_eq!(LdapMapErrorToWin32(LDAP_BUSY), ERROR_BUSY); // This function requires stdcall on x86. GetTickCount(); diff --git a/crates/tests/reserved/tests/win.rs b/crates/tests/reserved/tests/win.rs index f08340e8a9..ed464ac27c 100644 --- a/crates/tests/reserved/tests/win.rs +++ b/crates/tests/reserved/tests/win.rs @@ -35,7 +35,8 @@ fn test() -> Result<()> { None, Some(buffer.as_mut_ptr() as _), Some(&mut len), - ).ok()?; + ) + .ok()?; assert_eq!(String::from_utf8_lossy(&buffer), "text/plain\0"); Ok(()) }