aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/vec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/util/vec.rs')
-rw-r--r--components/util/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/util/vec.rs b/components/util/vec.rs
index c660d26584a..dd96fa07a99 100644
--- a/components/util/vec.rs
+++ b/components/util/vec.rs
@@ -35,7 +35,7 @@ impl<T: Ord + PartialOrd + PartialEq> BinarySearchMethods<T> for [T] {
impl<T> FullBinarySearchMethods<T> for [T] {
fn binary_search_index_by<K,C:Comparator<K,T>>(&self, key: &K, cmp: C) -> Option<usize> {
- if self.len() == 0 {
+ if self.is_empty() {
return None;
}