mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
fix reformat
This commit is contained in:
parent
e18748ed15
commit
4d047afe60
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
//! Generates descriptors structure for unstable feature from Unstable Book
|
||||
|
||||
use crate::codegen::update;
|
||||
use crate::codegen::{update, reformat};
|
||||
use crate::codegen::{self, project_root, Mode, Result};
|
||||
use crate::not_bash::{fs2, pushd, run};
|
||||
use proc_macro2::TokenStream;
|
||||
|
@ -53,7 +53,7 @@ pub fn generate_unstable_future_descriptor(mode: Mode) -> Result<()> {
|
|||
let src_dir = path.join(codegen::REPO_PATH);
|
||||
let content = generate_descriptor(src_dir)?.to_string();
|
||||
|
||||
let contents = crate::reformat(content)?;
|
||||
let contents = reformat(content)?;
|
||||
let destination = project_root().join(codegen::UNSTABLE_FEATURE);
|
||||
update(destination.as_path(), &contents, mode)?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue