fabaccess-bffh/bffhd/config/dhall.rs
Nadja Reitzenstein b02afe5575 Splitting config
2022-04-21 23:04:07 +02:00

8 lines
209 B
Rust

use std::path::Path;
use crate::Config;
pub fn read_config_file(path: impl AsRef<Path>) -> Result<Config, serde_dhall::Error> {
serde_dhall::from_file(path)
.parse()
.map_err(Into::into)
}