We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ccbb7a commit fddbbfbCopy full SHA for fddbbfb
cminesweeper/src/lib.rs
@@ -298,9 +298,6 @@ pub extern "C" fn minesweeper_game_get_elapsed_seconds(
298
c_ei_ptr: *mut CErrorInfo,
299
) {
300
initialize_to_ok!(c_ei_ptr);
301
- if game_ptr.is_null() || elapsed_seconds_ptr.is_null() {
302
- return_error!(c_ei_ptr, CError::NullPointerAsInput);
303
- }
304
let game = get_ref_from_ptr!(game_ptr, c_ei_ptr);
305
let elapsed_seconds = get_mut_ref_from_ptr!(elapsed_seconds_ptr, c_ei_ptr);
306
let elapsed_duration = game.get_elapsed();
0 commit comments