remove imap and smtp auth serde flatten

This commit is contained in:
Clément DOUIN
2024-09-03 12:02:02 +02:00
parent cfc88118bb
commit a2fa0dcf55
4 changed files with 75 additions and 46 deletions
+3
View File
@@ -75,7 +75,10 @@ impl Config {
match paths.len() {
0 => Self::from_default_paths().await,
_ if paths[0].exists() => Self::from_paths(paths),
#[cfg(feature = "wizard")]
_ => Self::from_wizard(&paths[0]).await,
#[cfg(not(feature = "wizard"))]
_ => color_eyre::eyre::bail!("cannot find config file from default paths"),
}
}