From 6a6ed688231e7beb5aadae01765030e40e805da8 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 18 Sep 2023 11:19:53 +0200 Subject: [PATCH] util/toml: Remove duplicate `serde(rename)` attributes The struct is already using `#[serde(rename_all = "kebab-case")]`, so the rename attributes on the individual fields seems unnecessary. --- src/cargo/util/toml/mod.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cargo/util/toml/mod.rs b/src/cargo/util/toml/mod.rs index 779618c331f..787286eee28 100644 --- a/src/cargo/util/toml/mod.rs +++ b/src/cargo/util/toml/mod.rs @@ -1407,9 +1407,7 @@ pub struct TomlPackage { authors: Option, build: Option, metabuild: Option, - #[serde(rename = "default-target")] default_target: Option, - #[serde(rename = "forced-target")] forced_target: Option, links: Option, exclude: Option,