diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-04-18 18:21:21 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-18 18:21:21 +0000 |
| commit | 4c6311a1e306d031fd9ff413bbd42baba646384e (patch) | |
| tree | 5313705861f46e270b35aab0179f19fef908f977 | |
| parent | ca40dc7ff75cabaa6c52c98b4712cc3f64696d62 (diff) | |
| parent | 11241c579aeda5051c2cbfcc7d3264437decb230 (diff) | |
Merge pull request #4111 from antonok-edm/hash-context-clone
Derive `Clone` for `hash::Context`
| -rw-r--r-- | embassy-stm32/src/hash/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-stm32/src/hash/mod.rs b/embassy-stm32/src/hash/mod.rs index 1258e8923..e62151bb5 100644 --- a/embassy-stm32/src/hash/mod.rs +++ b/embassy-stm32/src/hash/mod.rs | |||
| @@ -101,6 +101,7 @@ pub enum DataType { | |||
| 101 | 101 | ||
| 102 | /// Stores the state of the HASH peripheral for suspending/resuming | 102 | /// Stores the state of the HASH peripheral for suspending/resuming |
| 103 | /// digest calculation. | 103 | /// digest calculation. |
| 104 | #[derive(Clone)] | ||
| 104 | pub struct Context<'c> { | 105 | pub struct Context<'c> { |
| 105 | first_word_sent: bool, | 106 | first_word_sent: bool, |
| 106 | key_sent: bool, | 107 | key_sent: bool, |
