diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-03-15 22:10:21 +0100 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-03-15 22:10:21 +0100 |
commit | 428b9e9e1fe2c8e167e4d83151142690dc44d9c7 (patch) | |
tree | 883fce8eee9193114a6379fd9bf056fccdcd0267 /nrf-softdevice/src/softdevice.rs | |
parent | c584deaf9d9e941f18457934a4a463e078f380ec (diff) | |
download | nrf-softdevice-428b9e9e1fe2c8e167e4d83151142690dc44d9c7.zip |
Change `run()` to never return.
Diffstat (limited to 'nrf-softdevice/src/softdevice.rs')
-rw-r--r-- | nrf-softdevice/src/softdevice.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nrf-softdevice/src/softdevice.rs b/nrf-softdevice/src/softdevice.rs index a306554..cbcfe8b 100644 --- a/nrf-softdevice/src/softdevice.rs +++ b/nrf-softdevice/src/softdevice.rs @@ -319,7 +319,7 @@ impl Softdevice { /// /// It must be called in its own async task after enabling the softdevice /// and before doing any operation. Failure to doing so will cause async operations to never finish. - pub async fn run(&self) { - crate::events::run().await; + pub async fn run(&self) -> ! { + crate::events::run().await } } |