What do you think about the coming change of std::env::set_var() becoming unsafe? I'm using this in tests to set the log levels to a predefined value. Not sure what has been the thoughts to do this change. Then you have also to mark any File read unsafe, because some other thread or process could change the file content while reading/writing the file.