Closed torkleyy closed 9 months ago
you say that they don't require it but now you want to enforce it? Can you elaborate a bit more?
@Vollbrecht haha yeah I'm not sure which one is correct, I think one could argue to make them mutable even though it would be safe without (to avoid data races, because there are multiple individually locked calls).
If that's the case I will revert my change and just add some docs explaining the rationale. It just seemed weird at first sight.
I think this is an oversight,
set_str
andset_blob
require&mut self
. OTOH, it seems the nvs functions perform internal locking, indicating that they might be thread safe and none of the functions require mutability.