cargo: added patch for #28372

This commit is contained in:
Tristan Ross 2021-01-31 17:51:32 -08:00 committed by Érico Nogueira Rolim
parent fb1736e406
commit 707c0cda46

View file

@ -0,0 +1,14 @@
This patch was downloaded from "https://github.com/alexcrichton/cargo/commit/f097d02ea62111493b9f06d096a94dfddd020415.diff"
diff --git src/cargo/util/config/de.rs src/cargo/util/config/de.rs
index 758f5c23f1..a70cd0dce8 100644
--- src/cargo/util/config/de.rs
+++ src/cargo/util/config/de.rs
@@ -527,7 +527,7 @@ impl<'de, 'config> de::MapAccess<'de> for ValueDeserializer<'config> {
seed.deserialize(Tuple2Deserializer(0i32, path.to_string_lossy()))
}
Definition::Environment(env) => {
- seed.deserialize(Tuple2Deserializer(1i32, env.as_ref()))
+ seed.deserialize(Tuple2Deserializer(1i32, env.as_str()))
}
Definition::Cli => seed.deserialize(Tuple2Deserializer(2i32, "")),
}