mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
refactor(toml): Prefer common constant for bench dir name
This commit is contained in:
parent
f243c91f68
commit
b2ca065552
@ -525,7 +525,7 @@ fn resolve_benches(
|
||||
Some(legacy_path)
|
||||
};
|
||||
|
||||
let inferred = infer_from_directory(&package_root.join("benches"));
|
||||
let inferred = infer_from_directory(&package_root.join(DEFAULT_BENCH_DIR_NAME));
|
||||
|
||||
let targets = resolve_targets_with_legacy_path(
|
||||
"benchmark",
|
||||
|
Loading…
x
Reference in New Issue
Block a user