mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
drop figment
Just deserialize directly via the `toml` crate.
This commit is contained in:
parent
003c0a4928
commit
2b0bc140cf
4 changed files with 18 additions and 97 deletions
|
|
@ -38,8 +38,11 @@ impl fmt::Display for DisplayWithSources<'_> {
|
|||
#[allow(missing_docs)]
|
||||
#[derive(Error, Debug)]
|
||||
pub(crate) enum Main {
|
||||
#[error("invalid configuration")]
|
||||
ConfigInvalid(#[from] figment::Error),
|
||||
#[error("failed to read configuration file")]
|
||||
ConfigRead(#[source] std::io::Error),
|
||||
|
||||
#[error("failed to parse configuration")]
|
||||
ConfigParse(#[from] toml::de::Error),
|
||||
|
||||
#[error("failed to initialize observability")]
|
||||
Observability(#[from] Observability),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue