From 707c0cda46329e6805e5479c27913c341cf10674 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Sun, 31 Jan 2021 17:51:32 -0800 Subject: [PATCH] cargo: added patch for #28372 --- srcpkgs/cargo/patches/fix-serde.diff | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/cargo/patches/fix-serde.diff diff --git a/srcpkgs/cargo/patches/fix-serde.diff b/srcpkgs/cargo/patches/fix-serde.diff new file mode 100644 index 0000000000..d76499f5cd --- /dev/null +++ b/srcpkgs/cargo/patches/fix-serde.diff @@ -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, "")), + }