Skip to content

Commit 44f1851

Browse files
zjuxicuKalliMiika
andcommitted
typo fix
Co-authored-by: KalliMiika <KalliMiika@users.noreply.github.com> Co-authored-by: zjuxicu <zjuxicu@users.noreply.github.com>
1 parent 0884558 commit 44f1851

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

src/commands.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ pub fn handle(matches: &clap::ArgMatches, io: &mut dyn Io) {
7474
}
7575
}
7676
("download", args) => {
77-
if let Some(a) = args {
78-
update(io, &mut client, a.is_present("currentdir"));
79-
} else {
80-
io.println("Error: Arguments not found", PrintColor::Failed);
81-
}
82-
}
83-
("update", args) => {
84-
//TODO: Make own commandfile when tmc-langs-rust supports update
85-
//with folder as a parameter
8677
if let Some(a) = args {
8778
download_or_update(
8879
io,
@@ -94,6 +85,13 @@ pub fn handle(matches: &clap::ArgMatches, io: &mut dyn Io) {
9485
io.println("Error: Arguments not found", PrintColor::Failed);
9586
}
9687
}
88+
("update", args) => {
89+
if let Some(a) = args {
90+
update(io, &mut client, a.is_present("currentdir"));
91+
} else {
92+
io.println("Error: Arguments not found", PrintColor::Failed);
93+
}
94+
}
9795
("organization", args) => {
9896
if let Some(args) = args {
9997
let interactive_mode;

src/commands/courses_command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ mod tests {
123123
fn logout(&mut self) {}
124124
fn update_exercises(
125125
&mut self,
126-
path: &Path,
126+
_path: &Path,
127127
) -> Result<DownloadOrUpdateCourseExercisesResult, LangsError> {
128128
todo!()
129129
}

src/commands/exercises_command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ mod tests {
322322
}
323323
fn update_exercises(
324324
&mut self,
325-
path: &Path,
325+
_path: &Path,
326326
) -> Result<DownloadOrUpdateCourseExercisesResult, LangsError> {
327327
todo!()
328328
}

0 commit comments

Comments
 (0)