Skip to content

Commit 682c38a

Browse files
committed
Fix clippy
1 parent 6d31b3d commit 682c38a

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

crates/plugins/make/src/plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ impl LanguagePlugin for MakePlugin {
269269
for (test_result, valgrind_result) in run_result
270270
.test_results
271271
.iter_mut()
272-
.zip(valgrind_log.results.into_iter())
272+
.zip(valgrind_log.results)
273273
{
274274
if valgrind_result.errors {
275275
if test_result.successful {

crates/plugins/python3/src/plugin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl Python3Plugin {
8080

8181
fn get_local_python_ver() -> Result<(u32, u32, u32), PythonError> {
8282
let output = Self::get_local_python_command()
83-
.with(|e| e.args(&["-c", "import sys; print(sys.version_info.major); print(sys.version_info.minor); print(sys.version_info.micro);"]))
83+
.with(|e| e.args(["-c", "import sys; print(sys.version_info.major); print(sys.version_info.minor); print(sys.version_info.micro);"]))
8484
.output_checked()?;
8585
let stdout = String::from_utf8_lossy(&output.stdout);
8686
let mut lines = stdout.lines();
@@ -139,7 +139,7 @@ impl Python3Plugin {
139139
let common_args = ["-m", "tmc"];
140140

141141
let command = Self::get_local_python_command();
142-
let command = command.with(|e| e.args(&common_args).args(extra_args).cwd(path));
142+
let command = command.with(|e| e.args(common_args).args(extra_args).cwd(path));
143143
let command = if let Some(stdin) = stdin {
144144
command.set_stdin_data(stdin)
145145
} else {

crates/tmc-langs/src/course_refresher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ fn initialize_new_cache_clone(
215215
// clone_repository
216216
TmcCommand::piped("git")
217217
.with(|e| {
218-
e.args(&["clone", "-q", "-b"])
218+
e.args(["clone", "-q", "-b"])
219219
.arg(course_git_branch)
220220
.arg(course_source_url)
221221
.arg(new_clone_path)

crates/tmc-mooc-client/src/exercise.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ pub enum PublicSpec {
8282

8383
#[derive(Debug, Serialize, Deserialize)]
8484
#[serde(tag = "type")]
85+
#[allow(unused)]
8586
pub enum UserAnswer {
8687
Browser { files: Vec<ExerciseFile> },
8788
Editor { archive_download_url: String },

0 commit comments

Comments
 (0)