Skip to content

Commit

Permalink
fix: dont crash on ios (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
pevers committed Mar 17, 2024
1 parent 6af645e commit 706d6ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nosleep-ios/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ impl NoSleepTrait for NoSleep {
}

/// iOS does not have a system sleep prevention API.
/// This method will always return an error.
/// This will do the same as prevent_display_sleep
fn prevent_system_sleep(&mut self) -> Result<(), NoSleepError> {
unimplemented!()
self.prevent_display_sleep()
}

fn stop(&mut self) -> Result<(), NoSleepError> {
Expand Down

0 comments on commit 706d6ac

Please sign in to comment.