Remove free(self) in HMAC which goes against esp-hal API guidelines (#1972)

* Remove `free(self)` which goes against esp-hal API guidelines

* changelog
This commit is contained in:
Scott Mabin 2024-08-20 14:13:44 +02:00 committed by GitHub
parent 686037be4d
commit a33ebe1ed6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -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