From bca1e2ffd1658e800e15e730dee5d6cc02722270 Mon Sep 17 00:00:00 2001 From: Mark Simulacrum Date: Tue, 18 Jul 2017 16:14:44 -0600 Subject: [PATCH] Use a single line for serde annotations. --- src/bootstrap/config.rs | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index abb0408c4d2..b0c58235fc3 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -139,8 +139,7 @@ pub struct Target { /// file into this format, and then this is traversed and written into the above /// `Config` structure. #[derive(Deserialize, Default)] -#[serde(deny_unknown_fields)] -#[serde(rename_all = "kebab-case")] +#[serde(deny_unknown_fields, rename_all = "kebab-case")] struct TomlConfig { build: Option, install: Option, @@ -152,8 +151,7 @@ struct TomlConfig { /// TOML representation of various global build decisions. #[derive(Deserialize, Default, Clone)] -#[serde(deny_unknown_fields)] -#[serde(rename_all = "kebab-case")] +#[serde(deny_unknown_fields, rename_all = "kebab-case")] struct Build { build: Option, #[serde(default)] @@ -181,8 +179,7 @@ struct Build { /// TOML representation of various global install decisions. #[derive(Deserialize, Default, Clone)] -#[serde(deny_unknown_fields)] -#[serde(rename_all = "kebab-case")] +#[serde(deny_unknown_fields, rename_all = "kebab-case")] struct Install { prefix: Option, sysconfdir: Option, @@ -194,8 +191,7 @@ struct Install { /// TOML representation of how the LLVM build is configured. #[derive(Deserialize, Default)] -#[serde(deny_unknown_fields)] -#[serde(rename_all = "kebab-case")] +#[serde(deny_unknown_fields, rename_all = "kebab-case")] struct Llvm { ccache: Option, ninja: Option, @@ -211,8 +207,7 @@ struct Llvm { } #[derive(Deserialize, Default, Clone)] -#[serde(deny_unknown_fields)] -#[serde(rename_all = "kebab-case")] +#[serde(deny_unknown_fields, rename_all = "kebab-case")] struct Dist { sign_folder: Option, gpg_password_file: Option, @@ -235,8 +230,7 @@ impl Default for StringOrBool { /// TOML representation of how the Rust build is configured. #[derive(Deserialize, Default)] -#[serde(deny_unknown_fields)] -#[serde(rename_all = "kebab-case")] +#[serde(deny_unknown_fields, rename_all = "kebab-case")] struct Rust { optimize: Option, codegen_units: Option, @@ -259,8 +253,7 @@ struct Rust { /// TOML representation of how each build target is configured. #[derive(Deserialize, Default)] -#[serde(deny_unknown_fields)] -#[serde(rename_all = "kebab-case")] +#[serde(deny_unknown_fields, rename_all = "kebab-case")] struct TomlTarget { llvm_config: Option, jemalloc: Option,