diff --git a/CHANGELOG.md b/CHANGELOG.md index c8bd043b837..352099f0de0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - OTA: Allow specifying image size to speed up erase - Bluetooth: New methods `EspBleGap::start_scanning` and `EspBleGap::stop_scanning` - New example, `bt_ble_gap_scanner` to demonstrate usage of added ble scanning methods +- Add #[must_use] annotations to event loop types with drop handlers. ## [0.51.0] - 2025-01-15 diff --git a/src/eventloop.rs b/src/eventloop.rs index 64cd5685e1d..6e054434468 100644 --- a/src/eventloop.rs +++ b/src/eventloop.rs @@ -331,6 +331,7 @@ where } } +#[must_use = "Event subscription is unregistered when handle is dropped"] pub struct EspSubscription<'a, T> where T: EspEventLoopType,