Add terminal links

This commit is contained in:
mo8it
2024-04-14 02:41:19 +02:00
parent 5c0073a948
commit bee62c89de
10 changed files with 59 additions and 28 deletions
+6 -1
View File
@@ -91,7 +91,12 @@ impl EmbeddedFiles {
Ok(())
}
pub fn write_exercise_to_disk(&self, path: &Path, strategy: WriteStrategy) -> io::Result<()> {
pub fn write_exercise_to_disk<P>(&self, path: P, strategy: WriteStrategy) -> io::Result<()>
where
P: AsRef<Path>,
{
let path = path.as_ref();
if let Some(file) = self
.exercises_dir
.files