From abb6b8f14c4d05cf344048263651d8192997b6cf Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 8 Mar 2021 20:22:33 +0300 Subject: Use the same name in xtask and test utils --- crates/test_utils/src/bench_fixture.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/test_utils/src/bench_fixture.rs') 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; use stdx::format_to; -use crate::project_dir; +use crate::project_root; pub fn big_struct() -> String { let n = 1_000; @@ -32,11 +32,11 @@ struct S{} {{ } pub fn glorious_old_parser() -> String { - let path = project_dir().join("bench_data/glorious_old_parser"); + let path = project_root().join("bench_data/glorious_old_parser"); fs::read_to_string(&path).unwrap() } pub fn numerous_macro_rules() -> String { - let path = project_dir().join("bench_data/numerous_macro_rules"); + let path = project_root().join("bench_data/numerous_macro_rules"); fs::read_to_string(&path).unwrap() } -- cgit v1.2.3