From f097d02ea62111493b9f06d096a94dfddd020415 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 25 Jan 2021 07:12:04 -0800 Subject: [PATCH] Fix compilation with serde 1.0.122 This may or may not be a bug in serde, but let's commit a fix here first in any case. Closes #9101 --- src/cargo/util/config/de.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/util/config/de.rs b/src/cargo/util/config/de.rs index 758f5c23f13..a70cd0dce80 100644 --- a/src/cargo/util/config/de.rs +++ b/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, "")), }