aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
authorJoão Oliveira <hello@jxs.pt>2015-08-14 03:55:02 +0100
committerJoão Oliveira <hello@jxs.pt>2015-08-14 04:00:33 +0100
commit9c117818800b69f04f76e4f7afd92b2660752bae (patch)
treeba530ec7ba188dbca6d7e4fbe4422eea2b578537 /components/script/dom/document.rs
parentf5e97ef1b54b7f85d9c5a55712e802dd70a89f8e (diff)
downloadservo-9c117818800b69f04f76e4f7afd92b2660752bae.tar.gz
servo-9c117818800b69f04f76e4f7afd92b2660752bae.zip
replace .len() == 0 with is_empty()
closes #7198
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 394523daac7..9c7ea6d9085 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -970,7 +970,7 @@ impl<'a> DocumentHelpers<'a> for &'a Document {
/// https://html.spec.whatwg.org/multipage/#dom-window-cancelanimationframe
fn cancel_animation_frame(self, ident: i32) {
self.animation_frame_list.borrow_mut().remove(&ident);
- if self.animation_frame_list.borrow().len() == 0 {
+ if self.animation_frame_list.borrow().is_empty() {
let window = self.window.root();
let window = window.r();
let ConstellationChan(ref chan) = window.constellation_chan();