We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0678fb + 4b6c26d commit c8019b1Copy full SHA for c8019b1
src/cargo/util/config/de.rs
@@ -28,13 +28,15 @@ macro_rules! deserialize_method {
28
where
29
V: de::Visitor<'de>,
30
{
31
- let v = self.config.$getter(&self.key)?.ok_or_else(||
32
- ConfigError::missing(&self.key))?;
33
- let Value{val, definition} = v;
+ let v = self
+ .config
+ .$getter(&self.key)?
34
+ .ok_or_else(|| ConfigError::missing(&self.key))?;
35
+ let Value { val, definition } = v;
36
let res: Result<V::Value, ConfigError> = visitor.$visit(val);
37
res.map_err(|e| e.with_key_context(&self.key, definition))
38
}
- }
39
+ };
40
41
42
impl<'de, 'config> de::Deserializer<'de> for Deserializer<'config> {
0 commit comments