Skip to content

Commit ffb7854

Browse files
committed
windows-only things behind cfg flag
1 parent 3941c33 commit ffb7854

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tmc-langs-java/src/maven.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,13 @@ impl JavaPlugin for MavenPlugin {
249249
mod test {
250250
use super::super::{TestCase, TestCaseStatus};
251251
use super::*;
252-
use std::sync::Once;
253252
use tempfile::{tempdir, TempDir};
254253
use tmc_langs_framework::plugin::Strategy;
255254
use walkdir::WalkDir;
256255

256+
#[cfg(windows)]
257+
use std::sync::Once;
258+
#[cfg(windows)]
257259
static INIT_MAVEN: Once = Once::new();
258260

259261
fn init() {

0 commit comments

Comments
 (0)