From 4d047afe6088a28e767fa4aa21cc53227817ea5a Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 18 Aug 2020 19:42:12 +0700 Subject: fix reformat --- xtask/src/codegen/gen_unstable_future_descriptor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtask/src/codegen') 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 @@ //! 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)?; -- cgit v1.2.3