Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Feb 27, 2024
1 parent 0bacb5c commit a265904
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions crates/tests/calling_convention/tests/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 2 additions & 1 deletion crates/tests/reserved/tests/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit a265904

Please sign in to comment.