diff options
-rw-r--r-- | components/compositing/surface_map.rs | 2 |
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"), } |