Replace deprecated methods in config
Compare changes
Some changes are not shown
For a faster browsing experience, some files are collapsed by default.
+ 0
− 1
This MR replaces the deprecated Config::set
method by using ConfigBuilder::add_source
on the previously built configuration.
Also, since rustc
is single-threaded, lazy_static!
+ RwLock
has been replaced by thread_local!
+ RefCell
.
Default features of config
have also been disabled, removing 32 unused crate dependencies from the final build.
Note that the write_setting
currently overrides the previous configuration rather than merging it (hence, the fix
name before the commit name).
For a faster browsing experience, some files are collapsed by default.