diff options
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/codegen/gen_unstable_future_descriptor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/codegen/gen_unstable_future_descriptor.rs b/xtask/src/codegen/gen_unstable_future_descriptor.rs index f220f85d3..26dab8c76 100644 --- a/xtask/src/codegen/gen_unstable_future_descriptor.rs +++ b/xtask/src/codegen/gen_unstable_future_descriptor.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | //! Generates descriptors structure for unstable feature from Unstable Book | 1 | //! Generates descriptors structure for unstable feature from Unstable Book |
2 | 2 | ||
3 | use crate::codegen::update; | 3 | use crate::codegen::{update, reformat}; |
4 | use crate::codegen::{self, project_root, Mode, Result}; | 4 | use crate::codegen::{self, project_root, Mode, Result}; |
5 | use crate::not_bash::{fs2, pushd, run}; | 5 | use crate::not_bash::{fs2, pushd, run}; |
6 | use proc_macro2::TokenStream; | 6 | use proc_macro2::TokenStream; |
@@ -53,7 +53,7 @@ pub fn generate_unstable_future_descriptor(mode: Mode) -> Result<()> { | |||
53 | let src_dir = path.join(codegen::REPO_PATH); | 53 | let src_dir = path.join(codegen::REPO_PATH); |
54 | let content = generate_descriptor(src_dir)?.to_string(); | 54 | let content = generate_descriptor(src_dir)?.to_string(); |
55 | 55 | ||
56 | let contents = crate::reformat(content)?; | 56 | let contents = reformat(content)?; |
57 | let destination = project_root().join(codegen::UNSTABLE_FEATURE); | 57 | let destination = project_root().join(codegen::UNSTABLE_FEATURE); |
58 | update(destination.as_path(), &contents, mode)?; | 58 | update(destination.as_path(), &contents, mode)?; |
59 | 59 | ||