From a33ebe1ed64f65f6d218b819fb4cb1e8d61453df Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Tue, 20 Aug 2024 14:13:44 +0200 Subject: [PATCH] Remove `free(self)` in HMAC which goes against esp-hal API guidelines (#1972) * Remove `free(self)` which goes against esp-hal API guidelines * changelog --- esp-hal/CHANGELOG.md | 1 + esp-hal/src/hmac.rs | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/esp-hal/CHANGELOG.md b/esp-hal/CHANGELOG.md index 9c1c4df95..f8437c351 100644 --- a/esp-hal/CHANGELOG.md +++ b/esp-hal/CHANGELOG.md @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Peripherals (where possible) are now explicitly reset and enabled in their constructors (#1893) - SHA driver now use specific structs for the hashing algorithm instead of a parameter. (#1908) - Reset peripherals in driver constructors where missing (#1893, #1961) +- Remove `fn free(self)` in HMAC which goes against esp-hal API guidelines (#1972) ### Fixed diff --git a/esp-hal/src/hmac.rs b/esp-hal/src/hmac.rs index 5016a189a..200690e6e 100644 --- a/esp-hal/src/hmac.rs +++ b/esp-hal/src/hmac.rs @@ -109,10 +109,6 @@ impl<'d> Hmac<'d> { } } - pub fn free(self) -> PeripheralRef<'d, HMAC> { - self.hmac - } - /// Step 1. Enable HMAC module. /// /// Before these steps, the user shall set the peripheral clocks bits for