Skip to content

Commit c8019b1

Browse files
committed
Auto merge of #7904 - ehuss:rustfmt-1.4.12-fix, r=alexcrichton
Update for nightly rustfmt. Most recently nightly seems to have slightly different behavior.
2 parents e0678fb + 4b6c26d commit c8019b1

File tree

1 file changed

+6
-4
lines changed
  • src/cargo/util/config

1 file changed

+6
-4
lines changed

src/cargo/util/config/de.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ macro_rules! deserialize_method {
2828
where
2929
V: de::Visitor<'de>,
3030
{
31-
let v = self.config.$getter(&self.key)?.ok_or_else(||
32-
ConfigError::missing(&self.key))?;
33-
let Value{val, definition} = v;
31+
let v = self
32+
.config
33+
.$getter(&self.key)?
34+
.ok_or_else(|| ConfigError::missing(&self.key))?;
35+
let Value { val, definition } = v;
3436
let res: Result<V::Value, ConfigError> = visitor.$visit(val);
3537
res.map_err(|e| e.with_key_context(&self.key, definition))
3638
}
37-
}
39+
};
3840
}
3941

4042
impl<'de, 'config> de::Deserializer<'de> for Deserializer<'config> {

0 commit comments

Comments
 (0)