Skip to content

Commit 13e9058

Browse files
committed
add missing cfg(test)
1 parent fefa6b0 commit 13e9058

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,13 @@ impl Compiler {
128128

129129
}
130130

131+
#[cfg(test)]
131132
mod tests {
133+
use super::*;
132134

133135
fn jit(code: &str) {
134136

135-
let mut compiler = crate::Compiler::new();
137+
let mut compiler = Compiler::new();
136138
let paths = vec![String::from(".")];
137139

138140
compiler.parse(code.into(), &paths[0]);

0 commit comments

Comments
 (0)