From c2e921c2dc2858941ff56f0203d7fc09c416c919 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Wed, 27 Dec 2023 08:42:13 -0500 Subject: [PATCH] Move wasm test to a top-level module. For some unknown reason, this makes rust-analyzer not angry. --- src/bin_wasm_test.rs | 2 +- src/lib.rs | 2 +- src/wasm/mod.rs | 2 -- src/{wasm/compare => wasm_test}/mod.rs | 0 src/{wasm/compare => wasm_test}/runner.rs | 0 5 files changed, 2 insertions(+), 4 deletions(-) rename src/{wasm/compare => wasm_test}/mod.rs (100%) rename src/{wasm/compare => wasm_test}/runner.rs (100%) diff --git a/src/bin_wasm_test.rs b/src/bin_wasm_test.rs index ac29419..48a271f 100644 --- a/src/bin_wasm_test.rs +++ b/src/bin_wasm_test.rs @@ -2,7 +2,7 @@ #![feature(exit_status_error)] use std::io::Read; -use organic::wasm::compare::wasm_run_anonymous_compare; +use organic::wasm_test::wasm_run_anonymous_compare; #[cfg(feature = "tracing")] use crate::init_tracing::init_telemetry; diff --git a/src/lib.rs b/src/lib.rs index 98b4b7f..38c5d11 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,7 @@ pub mod compare; #[cfg(any(feature = "compare", feature = "wasm_test"))] pub mod util; #[cfg(feature = "wasm_test")] -pub mod wasm; +pub mod wasm_test; mod context; mod error; diff --git a/src/wasm/mod.rs b/src/wasm/mod.rs index a053c8a..8c22227 100644 --- a/src/wasm/mod.rs +++ b/src/wasm/mod.rs @@ -9,8 +9,6 @@ mod clock; mod code; mod comment; mod comment_block; -#[cfg(feature = "wasm_test")] -pub mod compare; mod diary_sexp; mod document; mod drawer; diff --git a/src/wasm/compare/mod.rs b/src/wasm_test/mod.rs similarity index 100% rename from src/wasm/compare/mod.rs rename to src/wasm_test/mod.rs diff --git a/src/wasm/compare/runner.rs b/src/wasm_test/runner.rs similarity index 100% rename from src/wasm/compare/runner.rs rename to src/wasm_test/runner.rs