We assume that static CACHE of Configs is never dropped, so we only pass &'static Config around. It is an implementation detail in rust, that static variables (currently) aren't dropped at the program's termination. This PR makes sure that this behavior stays the same even if this fact is changed later on.
Also, needless usages of Arc and some some unsafe code was removed.
We assume that
static CACHE
ofConfig
s is never dropped, so we only pass&'static Config
around. It is an implementation detail in rust, thatstatic
variables (currently) aren't dropped at the program's termination. This PR makes sure that this behavior stays the same even if this fact is changed later on.Also, needless usages of
Arc
and some someunsafe
code was removed.