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