cleanup Config::load()

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-10-04 19:10:20 +00:00 committed by strawberry
parent 2a59a56eaa
commit f67cfcd535
2 changed files with 18 additions and 26 deletions

View file

@ -24,7 +24,7 @@ pub(crate) struct Server {
impl Server {
pub(crate) fn build(args: &Args, runtime: Option<&runtime::Handle>) -> Result<Arc<Self>, Error> {
let raw_config = Config::load(&args.config)?;
let raw_config = Config::load(args.config.as_deref())?;
let raw_config = crate::clap::update(raw_config, args)?;
let config = Config::new(&raw_config)?;