Closed NobodyXu closed 1 week ago
Might make sense to ban
std::env::var
andstd::env::var_os
via. Clippy'sdisallowed_methods
functionality? And then explicitly allow it inside the implementation ofgetenv
Thanks!
Applied the suggestion, and turns out that the entire windows_registry
is using env::var*
Took me a while to change them to use a generic function.
cc @thomcc @madsmtm
cc @madsmtm This PR should cover most env variables in #906
If there's any missing, feel free to open a comment.
Updated the code to remove any generics in windows_regsitry
.
Having generics would make cc
takes longer to compile and generate larger binary, and I don't think it would give us any improvements to performance.
So that we would get:
Also some optimisation