Skip to content

Commit 558149a

Browse files
committed
Fixed clippy lints
1 parent 0576630 commit 558149a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

plugins/java/src/ant_plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ mod test {
546546
let temp_dir = dir_to_temp("tests/data/ant-exercise");
547547
let plugin = AntPlugin::new().unwrap();
548548
let exercises = plugin
549-
.scan_exercise(&temp_dir.path(), "test".to_string())
549+
.scan_exercise(temp_dir.path(), "test".to_string())
550550
.unwrap();
551551
assert_eq!(exercises.name, "test");
552552
assert_eq!(exercises.tests.len(), 4);

plugins/java/src/maven_plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ mod test {
427427
let temp_dir = dir_to_temp("tests/data/maven-exercise");
428428
let (plugin, _lock) = get_maven();
429429
let exercises = plugin
430-
.scan_exercise(&temp_dir.path(), "test".to_string())
430+
.scan_exercise(temp_dir.path(), "test".to_string())
431431
.unwrap();
432432
assert_eq!(exercises.name, "test");
433433
assert_eq!(exercises.tests.len(), 1);

tmc-client/tests/api_integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ fn posts_submission_feedback() {
458458
#[ignore]
459459
fn posts_submission_review() {
460460
let client = &init_client();
461-
let _res = api_v8::core::post_submission_review(
461+
api_v8::core::post_submission_review(
462462
client,
463463
SUBMISSION_ID,
464464
"review body".to_string(),

tmc-langs-framework/src/plugin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ mod test {
663663
@Points("1.1")
664664
"#,
665665
);
666-
let points = MockPlugin::get_available_points(&temp.path()).unwrap();
666+
let points = MockPlugin::get_available_points(temp.path()).unwrap();
667667
assert!(points.is_empty());
668668

669669
let temp = tempfile::tempdir().unwrap();
@@ -687,7 +687,7 @@ def d():
687687
pass
688688
"#,
689689
);
690-
let points = MockPlugin::get_available_points(&temp.path()).unwrap();
690+
let points = MockPlugin::get_available_points(temp.path()).unwrap();
691691
assert_eq!(points, &["1", "2", "3", "4"]);
692692

693693
let temp = tempfile::tempdir().unwrap();
@@ -722,7 +722,7 @@ def f():
722722
pass
723723
"#,
724724
);
725-
let points = MockPlugin::get_available_points(&temp.path()).unwrap();
725+
let points = MockPlugin::get_available_points(temp.path()).unwrap();
726726
assert_eq!(points, &["1", "3"]);
727727
}
728728

tmc-langs/src/submission_processing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ extra_student_files:
553553
.as_bytes(),
554554
)
555555
.unwrap();
556-
let conf = TmcProjectYml::load_or_default(&temp.path()).unwrap();
556+
let conf = TmcProjectYml::load_or_default(temp.path()).unwrap();
557557
assert!(conf.extra_student_files[0] == PathBuf::from("test/StudentTest.java"));
558558
assert!(conf.extra_student_files[1] == PathBuf::from("test/OtherTest.java"));
559559
}

0 commit comments

Comments
 (0)