Skip to content

Commit

Permalink
removed map_errs
Browse files Browse the repository at this point in the history
  • Loading branch information
arkanoider committed Oct 27, 2023
1 parent 45473a0 commit a46e2e4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/cli/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,12 @@ impl Settings {
.set_override(
"database.url",
format!("sqlite://{}", config_path.display()),
)
.map_err(|source| FromConfigErrorKind::TomlFileError { source })?
)?
.build()
.map_err(|source| FromConfigErrorKind::TomlFileError { source })
})()
.map_err(|kind| MostroSettingsError {
.map_err(|source| MostroSettingsError {
path: Some(config_path.clone().into()),
kind,
kind: FromConfigErrorKind::TomlFileError { source },
})?;

// You can deserialize the entire configuration as
Expand Down

0 comments on commit a46e2e4

Please sign in to comment.