(
name: &str,
default_toml: &str,
leaf_config: Option<&str>,
nested: bool,
)
| 62 | } |
| 63 | |
| 64 | pub fn load_config( |
| 65 | name: &str, |
| 66 | default_toml: &str, |
| 67 | leaf_config: Option<&str>, |
| 68 | nested: bool, |
| 69 | ) -> Figment { |
| 70 | let etc_path = format!("/etc/{name}"); |
| 71 | search_load_config(name, &[&etc_path, "."], default_toml, leaf_config, nested) |
| 72 | } |
| 73 | |
| 74 | #[cfg(test)] |
| 75 | mod tests { |
nothing calls this directly
no test coverage detected