use std::fs; fn read_config(path: &str) -> Result> { let text = fs::read_to_string(path)?; let config: Config = toml::from_str(&text)?; Ok(config) }