mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
todo(codegen): added todo to change the reference to removed ra_tools crate
This commit is contained in:
parent
51fec39b82
commit
ecf3b3c9a1
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ fn reformat(text: impl std::fmt::Display) -> Result<String> {
|
||||||
write!(rustfmt.stdin.take().unwrap(), "{}", text)?;
|
write!(rustfmt.stdin.take().unwrap(), "{}", text)?;
|
||||||
let output = rustfmt.wait_with_output()?;
|
let output = rustfmt.wait_with_output()?;
|
||||||
let stdout = String::from_utf8(output.stdout)?;
|
let stdout = String::from_utf8(output.stdout)?;
|
||||||
|
// TODO: update the preable: replace ra_tools with the relevant path
|
||||||
let preamble = "Generated file, do not edit by hand, see `crate/ra_tools/src/codegen`";
|
let preamble = "Generated file, do not edit by hand, see `crate/ra_tools/src/codegen`";
|
||||||
Ok(format!("//! {}\n\n{}", preamble, stdout))
|
Ok(format!("//! {}\n\n{}", preamble, stdout))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue