diff options
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/topanime.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/feature/topanime.rs b/src/feature/topanime.rs index 94edd30..7380b11 100644 --- a/src/feature/topanime.rs +++ b/src/feature/topanime.rs | |||
@@ -1,7 +1,6 @@ | |||
1 | use std::io; | 1 | use std::io; |
2 | use std::io::prelude::*; | 2 | use std::io::prelude::*; |
3 | use std::fs::File; | 3 | use std::fs::File; |
4 | use std::usize; | ||
5 | 4 | ||
6 | extern crate telegram_bot; | 5 | extern crate telegram_bot; |
7 | use telegram_bot::{Api, Message, MessageType}; | 6 | use telegram_bot::{Api, Message, MessageType}; |
@@ -19,15 +18,6 @@ pub struct Anime { | |||
19 | score: f64, | 18 | score: f64, |
20 | } | 19 | } |
21 | 20 | ||
22 | impl Anime { | ||
23 | pub fn new(name: &str, score: f64) -> Anime { | ||
24 | Anime { | ||
25 | name: name.to_owned(), | ||
26 | score: score, | ||
27 | } | ||
28 | } | ||
29 | } | ||
30 | |||
31 | pub struct TopAnime { | 21 | pub struct TopAnime { |
32 | animes: Vec<Anime>, | 22 | animes: Vec<Anime>, |
33 | last_update: f64, | 23 | last_update: f64, |