diff options
| author | jan <jan@ruken.pw> | 2016-04-07 17:05:24 (UTC) | 
|---|---|---|
| committer | jan <jan@ruken.pw> | 2016-04-07 17:05:24 (UTC) | 
| commit | 5fe11c7ffa1227f10139836a9c755a63dacc6916 (patch) | |
| tree | 6c126a9b279bc18401fa9f8348642df8833e7b18 /src/feature/topanime.rs | |
| parent | 41e1b7bc8279cfe47577a9191a738325950bb431 (diff) | |
features anzeigen fuer luggas. irgendwas gefixt.
Diffstat (limited to 'src/feature/topanime.rs')
| -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, | 
