aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/feature/tasterank.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/feature/tasterank.rs b/src/feature/tasterank.rs
index 20146df..7a93506 100644
--- a/src/feature/tasterank.rs
+++ b/src/feature/tasterank.rs
@@ -34,9 +34,12 @@ impl Feature for Tasterank {
34 (time::precise_time_ns() - start) / 1000000); 34 (time::precise_time_ns() - start) / 1000000);
35 35
36 let mut msg = String::new(); 36 let mut msg = String::new();
37 for (i, rank) in self.ranks.iter().enumerate() { 37 let mut i = 1;
38 for r in &self.ranks {
38 msg.push_str(&format!("{}. {}\n", i + 1, rank)); 39 msg.push_str(&format!("{}. {}\n", i + 1, rank));
39 } 40 }
41 println!("(benchm) tasterank before send: {}ms",
42 (time::precise_time_ns() - start) / 1000000);
40 if let Err(e) = a.send_message(m.chat.id(), msg, None, None, Some(m.message_id), None) { 43 if let Err(e) = a.send_message(m.chat.id(), msg, None, None, Some(m.message_id), None) {
41 println!("{}", e); 44 println!("{}", e);
42 } 45 }