aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorDmitry <[email protected]>2020-08-18 13:42:12 +0100
committerDmitry <[email protected]>2020-08-18 13:44:52 +0100
commit4d047afe6088a28e767fa4aa21cc53227817ea5a (patch)
tree640258e1d009fcf8c216ede42af972655b181f53 /xtask
parente18748ed152989953e39492a6b44f8001267ce5f (diff)
fix reformat
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/codegen/gen_unstable_future_descriptor.rs4
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
3use crate::codegen::update; 3use crate::codegen::{update, reformat};
4use crate::codegen::{self, project_root, Mode, Result}; 4use crate::codegen::{self, project_root, Mode, Result};
5use crate::not_bash::{fs2, pushd, run}; 5use crate::not_bash::{fs2, pushd, run};
6use proc_macro2::TokenStream; 6use 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