Skip to content

Commit 75752ca

Browse files
committed
fix clippy lint
1 parent 3333cc2 commit 75752ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
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).unwrap(); // safe
395+
let relative_path = tmcproject_yml_path
396+
.strip_prefix(&root_path)
397+
.expect("tmcproject_yml_path is inside root_path");
396398
writer.start_file(
397399
relative_path.to_string_lossy(),
398400
zip::write::FileOptions::default(),

0 commit comments

Comments
 (0)