We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3333cc2 commit 75752caCopy full SHA for 75752ca
tmc-langs/src/course_refresher.rs
@@ -392,7 +392,9 @@ fn execute_zip(
392
let tmcproject_yml_path = exercise_root.join(".tmcproject.yml");
393
if tmcproject_yml_path.exists() {
394
let tmcproject_yml = file_util::read_file(&tmcproject_yml_path)?;
395
- let relative_path = tmcproject_yml_path.strip_prefix(&root_path).unwrap(); // safe
+ let relative_path = tmcproject_yml_path
396
+ .strip_prefix(&root_path)
397
+ .expect("tmcproject_yml_path is inside root_path");
398
writer.start_file(
399
relative_path.to_string_lossy(),
400
zip::write::FileOptions::default(),
0 commit comments