mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Tweak whitespace
This commit is contained in:
parent
1c6a2eb14a
commit
7e3ee77c83
2 changed files with 2 additions and 21 deletions
|
@ -10,7 +10,7 @@ use crate::{
|
|||
pub fn generate_feature_docs(mode: Mode) -> Result<()> {
|
||||
let features = Feature::collect()?;
|
||||
let contents = features.into_iter().map(|it| it.to_string()).collect::<Vec<_>>().join("\n\n");
|
||||
|
||||
let contents = contents.trim().to_string() + "\n";
|
||||
let dst = project_root().join("docs/user/generated_features.adoc");
|
||||
codegen::update(&dst, &contents, mode)?;
|
||||
Ok(())
|
||||
|
@ -81,7 +81,7 @@ impl fmt::Display for Feature {
|
|||
name.to_str().unwrap(),
|
||||
)?;
|
||||
|
||||
writeln!(f, "\n{}", self.doc)?;
|
||||
writeln!(f, "{}", self.doc)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue