From b3dd45f779bd36dd4217decdf805e1168184d705 Mon Sep 17 00:00:00 2001 From: Ottomated Date: Sat, 19 Oct 2024 18:01:02 -0700 Subject: [PATCH] refactor(ast_tools): rename GeneratorOutput::Raw -> Text --- tasks/ast_tools/src/codegen.rs | 2 +- tasks/ast_tools/src/generators/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/ast_tools/src/codegen.rs b/tasks/ast_tools/src/codegen.rs index f33c64a0abf8e1..dbddb0e219d2ad 100644 --- a/tasks/ast_tools/src/codegen.rs +++ b/tasks/ast_tools/src/codegen.rs @@ -61,7 +61,7 @@ impl From for SideEffect { fn from(output: GeneratorOutput) -> Self { match output { GeneratorOutput::Rust { path, tokens } => Self::from((path, tokens)), - GeneratorOutput::Raw { path, content } => Self { path, content: content.into() }, + GeneratorOutput::Text { path, content } => Self { path, content: content.into() }, } } } diff --git a/tasks/ast_tools/src/generators/mod.rs b/tasks/ast_tools/src/generators/mod.rs index 7090ea4bc2d55b..bd8df1f3e3d179 100644 --- a/tasks/ast_tools/src/generators/mod.rs +++ b/tasks/ast_tools/src/generators/mod.rs @@ -33,7 +33,7 @@ pub enum GeneratorOutput { tokens: TokenStream, }, #[expect(dead_code)] - Raw { + Text { path: PathBuf, content: String, },