diff options
author | Dmitry <[email protected]> | 2020-08-18 13:42:12 +0100 |
---|---|---|
committer | Dmitry <[email protected]> | 2020-08-18 13:44:52 +0100 |
commit | 4d047afe6088a28e767fa4aa21cc53227817ea5a (patch) | |
tree | 640258e1d009fcf8c216ede42af972655b181f53 /xtask/src/codegen | |
parent | e18748ed152989953e39492a6b44f8001267ce5f (diff) |
fix reformat
Diffstat (limited to 'xtask/src/codegen')
-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 | ||