mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-23 04:03:48 +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)
|
|
}
|