Skip to content

Commit d0e1f70

Browse files
committed
0.18.0
1 parent f1eda23 commit d0e1f70

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+181
-130
lines changed

plugins/csharp/src/cs_test_result.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ impl CSTestResult {
3030
}
3131

3232
#[cfg(test)]
33+
#[allow(clippy::clippy::unwrap_used)]
3334
mod test {
3435
use super::*;
3536

plugins/csharp/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(clippy::print_stdout, clippy::print_stderr)]
1+
#![deny(clippy::print_stdout, clippy::print_stderr, clippy::unwrap_used)]
22

33
//! TMC language plugin for C#.
44

plugins/csharp/src/plugin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ impl LanguagePlugin for CSharpPlugin {
348348
}
349349

350350
#[cfg(test)]
351+
#[allow(clippy::clippy::unwrap_used)]
351352
mod test {
352353
use super::*;
353354
use once_cell::sync::Lazy;

plugins/java/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ tmc-langs-util = { path = "../../tmc-langs-util" }
1212
dirs = "3"
1313
flate2 = "1"
1414
j4rs = "0.13.0" # specific version to match the jar
15-
lazy_static = "1"
1615
log = "0.4"
16+
once_cell = "1"
1717
serde = { version = "1", features = ["derive"] }
1818
serde_json = "1"
1919
tar = "0.4"

plugins/java/src/ant_plugin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ impl JavaPlugin for AntPlugin {
268268
}
269269

270270
#[cfg(test)]
271+
#[allow(clippy::clippy::unwrap_used)]
271272
mod test {
272273
use super::*;
273274
use std::fs;

plugins/java/src/java_plugin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ pub(crate) trait JavaPlugin: LanguagePlugin {
283283
}
284284

285285
#[cfg(test)]
286+
#[allow(clippy::clippy::unwrap_used)]
286287
mod test {
287288
use crate::SEPARATOR;
288289

plugins/java/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(clippy::print_stdout, clippy::print_stderr)]
1+
#![deny(clippy::print_stdout, clippy::print_stderr, clippy::unwrap_used)]
22

33
//! Java plugins for ant and maven
44

plugins/java/src/maven_plugin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,18 +245,18 @@ impl JavaPlugin for MavenPlugin {
245245

246246
#[cfg(test)]
247247
#[cfg(not(target_os = "macos"))] // issues with maven dependencies
248+
#[allow(clippy::unwrap_used)]
248249
mod test {
249250

250251
use super::super::{TestCase, TestCaseStatus};
251252
use super::*;
253+
use once_cell::sync::Lazy;
252254
use std::fs;
253255
use std::sync::{Mutex, MutexGuard};
254256
use tmc_langs_framework::StyleValidationStrategy;
255257
use zip::ZipArchive;
256258

257-
lazy_static::lazy_static! {
258-
static ref MAVEN_LOCK: Mutex<()> = Mutex::new(());
259-
}
259+
static MAVEN_LOCK: Lazy<Mutex<()>> = Lazy::new(|| Mutex::new(()));
260260

261261
fn init() {
262262
use log::*;

plugins/make/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ license = "MIT OR Apache-2.0"
99
tmc-langs-framework = { path = "../../tmc-langs-framework" }
1010
tmc-langs-util = { path = "../../tmc-langs-util" }
1111

12-
lazy_static = "1"
1312
log = "0.4"
13+
once_cell = "1"
1414
regex = "1"
1515
serde = { version = "1", features = ["derive"] }
1616
serde_yaml = "0.8"

plugins/make/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(clippy::print_stdout, clippy::print_stderr)]
1+
#![deny(clippy::print_stdout, clippy::print_stderr, clippy::unwrap_used)]
22

33
//! TMC plugin for make.
44

0 commit comments

Comments
 (0)