Skip to content

Commit 90cb809

Browse files
committed
fix(beacon-relay): box figment::Error in Config::load to fix clippy::result_large_err
1 parent e2f0938 commit 90cb809

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

beacon-relay/src/config.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ pub struct LogConfig {
2424
}
2525

2626
impl Config {
27-
pub fn load() -> Result<Self, figment::Error> {
27+
pub fn load() -> Result<Self, Box<figment::Error>> {
2828
let config_path = Self::default_config_path();
2929
Figment::new()
3030
.merge(Toml::file(config_path))
3131
.merge(Env::prefixed("APP_").split("__"))
3232
.extract()
33+
.map_err(Box::new)
3334
}
3435

3536
pub fn listen_addr(&self) -> String {

0 commit comments

Comments
 (0)