Skip to content

Commit 2b0ca73

Browse files
refactor(Rest): Clean up unused imports and restructure test modules
Remove unused `std::fs` and `tempfile::TempDir` imports from the test module in Detect.rs. Convert tests/lib.rs to use inline nested module syntax (`pub mod unit { ... }`) instead of separate file declarations, aligning with the project's modular organization.
1 parent b0c6d42 commit 2b0ca73

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

Source/Fn/Worker/Detect.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,6 @@ impl WorkerDetector {
161161

162162
#[cfg(test)]
163163
mod tests {
164-
use std::fs;
165-
166-
use tempfile::TempDir;
167-
168164
use super::*;
169165

170166
#[test]

tests/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
//! This module re-exports all necessary components for integration tests.
44
55
pub mod vscode_compatibility;
6-
pub mod unit;
7-
pub mod unit::parser_tests;
8-
pub mod unit::transformer_tests;
9-
pub mod unit::codegen_tests;
6+
pub mod unit {
7+
pub mod parser_tests;
8+
pub mod transformer_tests;
9+
pub mod codegen_tests;
10+
}
1011

1112
// Re-export compiler components for tests
1213
pub use crate::{

0 commit comments

Comments
 (0)