aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_tools/src/boilerplate_gen.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_tools/src/boilerplate_gen.rs')
-rw-r--r--crates/ra_tools/src/boilerplate_gen.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_tools/src/boilerplate_gen.rs b/crates/ra_tools/src/boilerplate_gen.rs
index 1d112c0af..39f1cae66 100644
--- a/crates/ra_tools/src/boilerplate_gen.rs
+++ b/crates/ra_tools/src/boilerplate_gen.rs
@@ -1,3 +1,5 @@
1//! FIXME: write short doc here
2
1use std::{ 3use std::{
2 collections::BTreeMap, 4 collections::BTreeMap,
3 fs, 5 fs,
@@ -282,7 +284,7 @@ fn reformat(text: impl std::fmt::Display) -> Result<String> {
282 let output = rustfmt.wait_with_output()?; 284 let output = rustfmt.wait_with_output()?;
283 let stdout = String::from_utf8(output.stdout)?; 285 let stdout = String::from_utf8(output.stdout)?;
284 let preamble = "Generated file, do not edit by hand, see `crate/ra_tools/src/codegen`"; 286 let preamble = "Generated file, do not edit by hand, see `crate/ra_tools/src/codegen`";
285 Ok(format!("// {}\n\n{}", preamble, stdout)) 287 Ok(format!("//! {}\n\n{}", preamble, stdout))
286} 288}
287 289
288#[derive(Deserialize, Debug)] 290#[derive(Deserialize, Debug)]