mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Unused params
This commit is contained in:
parent
1eb61203b7
commit
095b9110b5
5 changed files with 10 additions and 10 deletions
|
@ -12,12 +12,12 @@ pub(crate) fn generate_assists_tests(mode: Mode) -> Result<()> {
|
|||
generate_tests(&assists, mode)
|
||||
}
|
||||
|
||||
pub(crate) fn generate_assists_docs(mode: Mode) -> Result<()> {
|
||||
pub(crate) fn generate_assists_docs() -> Result<()> {
|
||||
let assists = Assist::collect()?;
|
||||
let contents = assists.into_iter().map(|it| it.to_string()).collect::<Vec<_>>().join("\n\n");
|
||||
let contents = format!("//{}\n{}\n", PREAMBLE, contents.trim());
|
||||
let dst = project_root().join("docs/user/generated_assists.adoc");
|
||||
codegen::update(&dst, &contents, mode)
|
||||
codegen::update(&dst, &contents, Mode::Overwrite)
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue