aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_tools/src/boilerplate_gen.rs (renamed from crates/ra_tools/src/codegen.rs)2
-rw-r--r--crates/ra_tools/src/lib.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_tools/src/codegen.rs b/crates/ra_tools/src/boilerplate_gen.rs
index c7f37e20c..5547d6969 100644
--- a/crates/ra_tools/src/codegen.rs
+++ b/crates/ra_tools/src/boilerplate_gen.rs
@@ -14,7 +14,7 @@ use serde::Deserialize;
14 14
15use crate::{project_root, Mode, Result, AST, GRAMMAR, SYNTAX_KINDS}; 15use crate::{project_root, Mode, Result, AST, GRAMMAR, SYNTAX_KINDS};
16 16
17pub fn generate(mode: Mode) -> Result<()> { 17pub fn generate_boilerplate(mode: Mode) -> Result<()> {
18 let grammar = project_root().join(GRAMMAR); 18 let grammar = project_root().join(GRAMMAR);
19 let grammar: Grammar = { 19 let grammar: Grammar = {
20 let text = fs::read_to_string(grammar)?; 20 let text = fs::read_to_string(grammar)?;
diff --git a/crates/ra_tools/src/lib.rs b/crates/ra_tools/src/lib.rs
index c02dee953..f1829d55a 100644
--- a/crates/ra_tools/src/lib.rs
+++ b/crates/ra_tools/src/lib.rs
@@ -1,4 +1,4 @@
1mod codegen; 1mod boilerplate_gen;
2 2
3use std::{ 3use std::{
4 collections::HashMap, 4 collections::HashMap,
@@ -11,7 +11,7 @@ use std::{
11 11
12use itertools::Itertools; 12use itertools::Itertools;
13 13
14pub use self::codegen::generate; 14pub use self::boilerplate_gen::generate_boilerplate;
15 15
16pub type Result<T> = std::result::Result<T, Box<dyn Error>>; 16pub type Result<T> = std::result::Result<T, Box<dyn Error>>;
17 17