summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli.rs b/src/cli.rs
index c9bd6b6..2fd296f 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -1,6 +1,6 @@
use crate::{paths::PathEntry, Config};
use clap::{Args, Parser};
-use figment::{providers::Serialized, value, Metadata, Profile, Provider};
+use figment::{value, Metadata, Profile, Provider};
use serde::Serialize;
use std::path::PathBuf;
use tracing::Level;
@@ -41,7 +41,7 @@ impl Provider for Cli {
}
fn data(&self) -> figment::error::Result<value::Map<Profile, value::Dict>> {
- Serialized::defaults(Self::default()).data()
+ Config::from(self.to_owned()).data()
}
}