From e8d6fee8be69722f3d019f3ff9330c8d1cd91c1c Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Sat, 20 May 2023 12:34:45 -0500 Subject: [PATCH] changed: build_dir() -> build_site to avoid confusion --- benches/dir.rs | 2 +- tests/build_dir.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/benches/dir.rs b/benches/dir.rs index 098f753..7200a94 100644 --- a/benches/dir.rs +++ b/benches/dir.rs @@ -18,7 +18,7 @@ pub fn build_dir(c: &mut Criterion) { } std::fs::create_dir(&opts.build).expect("create build dir"); - b.iter(|| metaforge::build_dir(black_box(&opts)).unwrap()) + b.iter(|| metaforge::build_site(black_box(&opts)).unwrap()) }); } diff --git a/tests/build_dir.rs b/tests/build_dir.rs index 5bf408a..c2253c4 100644 --- a/tests/build_dir.rs +++ b/tests/build_dir.rs @@ -13,7 +13,7 @@ fn build_test_site() -> Result<()> { opts.pattern = dir.join("pattern"); opts.clean = true; - metaforge::build_dir(&opts)?; + metaforge::build_site(&opts)?; assert!(opts.build.join("unit_tests").exists()); assert!(opts -- 2.45.2