Skip to content

Commit 80d63cb

Browse files
committed
cargo fmt
1 parent 68cd1d3 commit 80d63cb

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tmc-langs/src/course_refresher.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,9 @@ fn execute_zip(
392392
let tmcproject_yml_path = exercise_root.join(".tmcproject.yml");
393393
if tmcproject_yml_path.exists() {
394394
let tmcproject_yml = file_util::read_file(&tmcproject_yml_path)?;
395-
let relative_path = tmcproject_yml_path.strip_prefix(&root_path).expect("relative path failed for tmcproject yml"); // safe
395+
let relative_path = tmcproject_yml_path
396+
.strip_prefix(&root_path)
397+
.expect("relative path failed for tmcproject yml"); // safe
396398
writer.start_file(
397399
relative_path.to_string_lossy(),
398400
zip::write::FileOptions::default(),

tmc-langs/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,9 @@ checksum = 'new checksum'
11881188
id: 5,
11891189
checksum: "new checksum".to_string(),
11901190
course_name: "another course".to_string(),
1191-
exercise_name: "not on disk exercise with submission exercise hide submission result".to_string(),
1191+
exercise_name:
1192+
"not on disk exercise with submission exercise hide submission result"
1193+
.to_string(),
11921194
hide_submission_results: true,
11931195
},
11941196
],
@@ -1395,7 +1397,7 @@ checksum = 'new checksum'
13951397
let _e2 = skipped.iter().find(|e| e.id == 2).unwrap();
13961398
let e3 = downloaded.iter().find(|e| e.id == 3).unwrap();
13971399
let e4 = downloaded.iter().find(|e| e.id == 4).unwrap();
1398-
let e5 = downloaded.iter().find(|e|e.id == 5).unwrap();
1400+
let e5 = downloaded.iter().find(|e| e.id == 5).unwrap();
13991401

14001402
// did not download submission even though it was available because it was on disk
14011403
let f = file_util::read_file_to_string(e1.path.join("src/student_file.py")).unwrap();

0 commit comments

Comments
 (0)