diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-07-18 16:14:44 -0600 |
|---|---|---|
| committer | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-07-20 11:24:37 -0600 |
| commit | bca1e2ffd1658e800e15e730dee5d6cc02722270 (patch) | |
| tree | d7176b5f5fee291c400ef464a7c6e8954124567b /src/bootstrap | |
| parent | 981afa52f6e3fa61074a5e295c782cd0a84f06e1 (diff) | |
| download | rust-bca1e2ffd1658e800e15e730dee5d6cc02722270.tar.gz rust-bca1e2ffd1658e800e15e730dee5d6cc02722270.zip | |
Use a single line for serde annotations.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/config.rs | 21 |
1 files 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<Build>, install: Option<Install>, @@ -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<String>, #[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<String>, sysconfdir: Option<String>, @@ -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<StringOrBool>, ninja: Option<bool>, @@ -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<String>, gpg_password_file: Option<String>, @@ -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<bool>, codegen_units: Option<u32>, @@ -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<String>, jemalloc: Option<String>, |
