mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-24 15:47:57 +01:00
7 lines
192 B
Rust
7 lines
192 B
Rust
use crate::Config;
|
|
use std::path::Path;
|
|
|
|
pub fn read_config_file(path: impl AsRef<Path>) -> Result<Config, serde_dhall::Error> {
|
|
serde_dhall::from_file(path).parse().map_err(Into::into)
|
|
}
|