diff options
author | jan <jan@ruken.pw> | 2016-10-09 06:40:07 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2016-10-09 06:40:07 (UTC) |
commit | 54c2cb1e484e09b4fcfe236aff70c01bf3bbaae0 (patch) | |
tree | 3483753fb061d32f32bbe0c1a609d4b760192e47 /src/main.rs | |
parent | b8b1da0a95635fe9ed4ba28851906556ccc351a8 (diff) |
serien hinzugefuegt, aber ich muss auf die naechste rust nightly warten
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 2b96024..7481376 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | #![feature(rustc_macro)] | 1 | #![feature(proc_macro)] |
2 | #[macro_use] extern crate serde_derive; | 2 | #[macro_use] extern crate serde_derive; |
3 | extern crate serde_json; | 3 | extern crate serde_json; |
4 | 4 | ||
@@ -22,6 +22,8 @@ mod section; | |||
22 | 22 | ||
23 | mod character; | 23 | mod character; |
24 | use character::Character; | 24 | use character::Character; |
25 | mod series; | ||
26 | use series::Series; | ||
25 | 27 | ||
26 | mod tags; | 28 | mod tags; |
27 | mod dl_list; | 29 | mod dl_list; |
@@ -66,7 +68,7 @@ fn main() { | |||
66 | 68 | ||
67 | let buf = pre_process::strip_irrelevant_content(&buf); | 69 | let buf = pre_process::strip_irrelevant_content(&buf); |
68 | 70 | ||
69 | let mut char = Character::new(); | 71 | let mut char = Series::new(); |
70 | char.parse(&buf); | 72 | char.parse(&buf); |
71 | 73 | ||
72 | let json = serde_json::to_string(&char).unwrap(); | 74 | let json = serde_json::to_string(&char).unwrap(); |