aboutsummaryrefslogtreecommitdiff
path: root/crates/test_utils/src/bench_fixture.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-03-08 17:22:33 +0000
committerAleksey Kladov <[email protected]>2021-03-08 18:45:06 +0000
commitabb6b8f14c4d05cf344048263651d8192997b6cf (patch)
treeee149a19239f97344687768481f73588447e902a /crates/test_utils/src/bench_fixture.rs
parentb6ba0dec0c08dd2afcda951b09966b457f2c8bc3 (diff)
Use the same name in xtask and test utils
Diffstat (limited to 'crates/test_utils/src/bench_fixture.rs')
-rw-r--r--crates/test_utils/src/bench_fixture.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/test_utils/src/bench_fixture.rs b/crates/test_utils/src/bench_fixture.rs
index d775e2cc9..3a37c4473 100644
--- a/crates/test_utils/src/bench_fixture.rs
+++ b/crates/test_utils/src/bench_fixture.rs
@@ -4,7 +4,7 @@ use std::fs;
4 4
5use stdx::format_to; 5use stdx::format_to;
6 6
7use crate::project_dir; 7use crate::project_root;
8 8
9pub fn big_struct() -> String { 9pub fn big_struct() -> String {
10 let n = 1_000; 10 let n = 1_000;
@@ -32,11 +32,11 @@ struct S{} {{
32} 32}
33 33
34pub fn glorious_old_parser() -> String { 34pub fn glorious_old_parser() -> String {
35 let path = project_dir().join("bench_data/glorious_old_parser"); 35 let path = project_root().join("bench_data/glorious_old_parser");
36 fs::read_to_string(&path).unwrap() 36 fs::read_to_string(&path).unwrap()
37} 37}
38 38
39pub fn numerous_macro_rules() -> String { 39pub fn numerous_macro_rules() -> String {
40 let path = project_dir().join("bench_data/numerous_macro_rules"); 40 let path = project_root().join("bench_data/numerous_macro_rules");
41 fs::read_to_string(&path).unwrap() 41 fs::read_to_string(&path).unwrap()
42} 42}