diff options
author | jan <jan@ruken.pw> | 2016-10-01 17:21:51 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2016-10-01 17:21:51 (UTC) |
commit | 463513b6c24d2a261413879233b3b66d1a303659 (patch) | |
tree | 17863e072b04974befd85aa266572845cc68a369 /src/main.rs | |
parent | 6269372d8f4fc893d1679e6c56d66aefe24c6588 (diff) |
yay
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
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 | } |