Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurgel100 committed Oct 30, 2023
1 parent 6ffd702 commit 79418a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion msfs/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ impl<'a> NetworkRequestBuilder<'a> {
) -> sys::FsNetworkRequestId,
) -> Option<NetworkRequest> {
// SAFETY: we need a *mut i8 for the FsNetworkHttpRequestParam struct but this should be fine.
let raw_post_field = post_field.map_or(ptr::null_mut(), |f| f.as_c_str().as_ptr() as *mut i8);
let raw_post_field =
post_field.map_or(ptr::null_mut(), |f| f.as_c_str().as_ptr() as *mut i8);
let mut params = self.generate_params(raw_post_field);
let callback_data = self.callback.map_or(ptr::null_mut(), Box::into_raw) as *mut _;
let request_id = unsafe {
Expand Down

0 comments on commit 79418a2

Please sign in to comment.