You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attach key to type error generated from Config::get_<type>()
This commit extracts low-level get_value() to preserve the origin as much
as possible. get::<Value>() would run Value-to-Value deserialization, and
the origin field would be lost there.
For scalar types, we could instead leverage get::<T>() as the deserializer
implemented for Value type invokes Value::into_<type>() function:
fn get_string(&self, key: &str) -> Result<String> { self.get(key) }
Signed-off-by: Yuya Nishihara <[email protected]>
0 commit comments