From: Huck Boles Date: Sat, 20 May 2023 17:34:45 +0000 (-0500) Subject: changed: build_dir() -> build_site to avoid confusion X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=e8d6fee8be69722f3d019f3ff9330c8d1cd91c1c;p=metaforge.git changed: build_dir() -> build_site to avoid confusion --- 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