mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-14 03:07:57 +01:00
8 lines
209 B
Rust
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)
|
|
} |