nitrokey-3-firmware icon indicating copy to clipboard operation
nitrokey-3-firmware copied to clipboard

Remove usage of `static mut`

Open sosthene-nitrokey opened this issue 10 months ago • 2 comments

This can be replaced by UnsafeCell<T>. Ideally even a wrapper like Wrapper(AtomicBool, UnsafeCell<T>) that allows the reference to be taken only once.

sosthene-nitrokey avatar Mar 28 '24 13:03 sosthene-nitrokey

https://github.com/Nitrokey/nitrokey-3-firmware/pull/481 removes DEVICE_UUID.

robin-nitrokey avatar Apr 17 '24 20:04 robin-nitrokey

https://github.com/Nitrokey/nitrokey-3-firmware/pull/482 removes the statics in boards::store at the cost of increased binary size.

robin-nitrokey avatar Apr 17 '24 22:04 robin-nitrokey