Remove warnings

This commit is contained in:
Dima Kudosh
2016-03-01 15:00:07 +03:00
parent ef70f2450e
commit 16fc483ea1
3 changed files with 7 additions and 8 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
use std::collections::HashMap;
use std::cmp::{Ordering, max, min};
use std::cmp::{max, min};
use utils::calculate_ratio;
use std::fmt::Debug;
@@ -67,7 +67,7 @@ impl<'a> Sequence for Vec<&'a str> {
}
fn at_index(&self, index: usize) -> Option<&str> {
if index < self.len() && index >= 0 {
if index < self.len() {
return Some(self[index])
}
None