aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2015-12-11 09:08:14 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2015-12-11 09:08:14 +0530
commit99b9901ca24e0710e2cdf8831a959a1fb92657a9 (patch)
treef59cb557b22cd096f731ff745b20a557a467c26f
parent0abddae49d1fe0207469db6bfc84fe582b6ece9f (diff)
parenteff54f304e112e35e4c1c5322e1aee71389b73c5 (diff)
downloadservo-99b9901ca24e0710e2cdf8831a959a1fb92657a9.tar.gz
servo-99b9901ca24e0710e2cdf8831a959a1fb92657a9.zip
Auto merge of #8923 - saneyuki:warning2, r=nox
Fix warning: Use iterator.min_by_key instead of iterator.min_by <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8923) <!-- Reviewable:end -->
-rw-r--r--components/compositing/surface_map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/compositing/surface_map.rs b/components/compositing/surface_map.rs
index 09a3b733dd9..e91bbf5aaf5 100644
--- a/components/compositing/surface_map.rs
+++ b/components/compositing/surface_map.rs
@@ -111,7 +111,7 @@ impl SurfaceMap {
let old_key = match opt_key {
Some(key) => key,
None => {
- match self.map.iter().min_by(|&(_, x)| x.last_action) {
+ match self.map.iter().min_by_key(|&(_, x)| x.last_action) {
Some((k, _)) => *k,
None => panic!("SurfaceMap: tried to delete with no elements in map"),
}