Skip to content

Commit

Permalink
Remove redundant return statements for NULL_FUTURE
Browse files Browse the repository at this point in the history
Simplified the code by eliminating unnecessary `return` keywords before `NULL_FUTURE`. This improves code readability and aligns with Rust's idiomatic style for returning expressions. No functional changes were introduced.
  • Loading branch information
ygdrasil-io committed Jan 25, 2025
1 parent 90d7ce2 commit da90331
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ pub unsafe extern "C" fn wgpuBufferMapAsync(
};

// TODO: Properly handle futures.
return NULL_FUTURE;
NULL_FUTURE
}

#[no_mangle]
Expand Down Expand Up @@ -2615,7 +2615,7 @@ pub unsafe extern "C" fn wgpuDevicePopErrorScope(
}
};

return NULL_FUTURE;
NULL_FUTURE
}

#[no_mangle]
Expand Down Expand Up @@ -2768,7 +2768,7 @@ pub unsafe extern "C" fn wgpuInstanceRequestAdapter(
}
};

return NULL_FUTURE;
NULL_FUTURE
}

#[no_mangle]
Expand Down

0 comments on commit da90331

Please sign in to comment.