Skip to content

v0.1.1

Compare
Choose a tag to compare
@auguwu auguwu released this 30 Mar 09:59
· 70 commits to master since this release

Additions

Fixes

  • [config] Remove the restriction of TryParseError (and MapTryParseError)'s generics to be TryFromEnvValue to be any generic. In cases like PathBuf returning this error:
error[E0277]: `?` couldn't convert the error: `std::path::PathBuf: std::fmt::Display` is not satisfied
  --> /git/charted/server/crates/configuration/src/server/ssl.rs:54:39
   |
54 |             cert: env::try_parse(CERT)?,
   |                   --------------------^ `std::path::PathBuf` cannot be formatted with the default formatter; call `.display()` on it
   |                   |
   |                   this can't be annotated with `?` because it has type `Result<_, azalia::azalia_config::env::TryParseError<std::path::PathBuf>>`
   |
   = help: the trait `std::fmt::Display` is not implemented for `std::path::PathBuf`
   = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
   = note: required for `azalia::azalia_config::env::TryParseError<std::path::PathBuf>` to implement `std::error::Error`
   = note: required for `eyre::Report` to implement `std::convert::From<azalia::azalia_config::env::TryParseError<std::path::PathBuf>>`

Full Changelog: 0.1.0...0.1.1