srithon/BrightnessControl

Use less unsafe in Daemon core

Opened this issue · 0 comments

We are currently using quite a bit of unsafe and we shouldn't really have to. Because we are using synchronization primitives like RwLock and Mutex, we should definitely be able to make the program function without using unsafe all over the place. This may take some refactoring in the display module to make sure that functions do not take &mut self when they could be done with &self