diff options
author | Aleksey Kladov <[email protected]> | 2020-05-31 11:12:41 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-05-31 11:12:41 +0100 |
commit | 7e3ee77c83dc4e9af470491046206bf46d2a9a7e (patch) | |
tree | 9d9cbf3b9cb19918e462b395662a14db6039329d /xtask | |
parent | 1c6a2eb14a84c3a66972d1a6da429cca1aa8b40a (diff) |
Tweak whitespace
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/codegen/gen_feature_docs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/codegen/gen_feature_docs.rs b/xtask/src/codegen/gen_feature_docs.rs index a0c2ffef9..a6f339e7b 100644 --- a/xtask/src/codegen/gen_feature_docs.rs +++ b/xtask/src/codegen/gen_feature_docs.rs | |||
@@ -10,7 +10,7 @@ use crate::{ | |||
10 | pub fn generate_feature_docs(mode: Mode) -> Result<()> { | 10 | pub fn generate_feature_docs(mode: Mode) -> Result<()> { |
11 | let features = Feature::collect()?; | 11 | let features = Feature::collect()?; |
12 | let contents = features.into_iter().map(|it| it.to_string()).collect::<Vec<_>>().join("\n\n"); | 12 | let contents = features.into_iter().map(|it| it.to_string()).collect::<Vec<_>>().join("\n\n"); |
13 | 13 | let contents = contents.trim().to_string() + "\n"; | |
14 | let dst = project_root().join("docs/user/generated_features.adoc"); | 14 | let dst = project_root().join("docs/user/generated_features.adoc"); |
15 | codegen::update(&dst, &contents, mode)?; | 15 | codegen::update(&dst, &contents, mode)?; |
16 | Ok(()) | 16 | Ok(()) |
@@ -81,7 +81,7 @@ impl fmt::Display for Feature { | |||
81 | name.to_str().unwrap(), | 81 | name.to_str().unwrap(), |
82 | )?; | 82 | )?; |
83 | 83 | ||
84 | writeln!(f, "\n{}", self.doc)?; | 84 | writeln!(f, "{}", self.doc)?; |
85 | Ok(()) | 85 | Ok(()) |
86 | } | 86 | } |
87 | } | 87 | } |