1 2 3 4 5 6 7 8 9 10 11 12 13
use conflaguration::Settings; fn noop(value: &str) -> Result<String, std::convert::Infallible> { Ok(value.to_string()) } #[derive(Settings)] struct BadConfig { #[setting(nested, resolve_with = "noop")] inner: String, } fn main() {}