aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index a7f1f9d..c91861a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -45,7 +45,9 @@ fn main() {
45 45
46 let json = serde_json::to_string(&char).unwrap(); 46 let json = serde_json::to_string(&char).unwrap();
47 47
48 let mut o = File::create(out_path.join(entry.file_name())).unwrap(); 48 let out_file = out_path.join(entry.file_name().to_str().unwrap().replace("html", "json"));
49 let mut o = File::create(&out_file).unwrap();
49 o.write_all(json.as_bytes()).unwrap(); 50 o.write_all(json.as_bytes()).unwrap();
51 println!("{:?}", out_file);
50 } 52 }
51} 53}