Skip to content

Commit d4ccae3

Browse files
committed
Remove an unnecessary call to from
1 parent c95f396 commit d4ccae3

File tree

1 file changed

+1
-1
lines changed
  • src/cargo/util/config

1 file changed

+1
-1
lines changed

src/cargo/util/config/de.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ impl<'de, 'config> de::MapAccess<'de> for ValueDeserializer<'config> {
469469
// which is the actual deserializer
470470
if self.hits == 1 {
471471
return seed.deserialize(self.de.clone()).map_err(|e| {
472-
ConfigError::from(e).with_key_context(&self.de.key, self.definition.clone())
472+
e.with_key_context(&self.de.key, self.definition.clone())
473473
});
474474
}
475475

0 commit comments

Comments
 (0)