From f7d4a37f784ad8ce5d904e125167e4e4ef6a2e2a Mon Sep 17 00:00:00 2001 From: Shinichi Morimoto Date: Sat, 28 Mar 2020 23:21:35 +0900 Subject: [PATCH] fixed fmt --- components/script/dom/bindings/codegen/CodegenRust.py | 8 ++++++-- components/script/dom/bindings/interface.rs | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 3191a7acc4d..30c33f47077 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -2977,10 +2977,14 @@ class CGCollectJSONAttributesMethod(CGAbstractMethod): ret += fill( """ let conditions = ${conditions}; - if !conditions.iter().any(|c| c.is_satisfied(SafeJSContext::from_ptr(cx), HandleObject::from_raw(obj), HandleObject::from_raw(obj))) { + if !conditions.iter().any(|c| + c.is_satisfied( + SafeJSContext::from_ptr(cx), + HandleObject::from_raw(obj), + HandleObject::from_raw(obj))) { return false; } - rooted!(in(cx) let mut temp = UndefinedValue()); + rooted!(in(cx) let mut temp = UndefinedValue()); if !get_${name}(cx, obj, this, JSJitGetterCallArgs { _base: temp.handle_mut().into() }) { return false; } diff --git a/components/script/dom/bindings/interface.rs b/components/script/dom/bindings/interface.rs index 0faecf2a91b..fec137d9163 100644 --- a/components/script/dom/bindings/interface.rs +++ b/components/script/dom/bindings/interface.rs @@ -376,7 +376,7 @@ pub fn is_exposed_in(object: HandleObject, globals: Globals) -> bool { let unwrapped = UncheckedUnwrapObject(object.get(), /* stopAtWindowProxy = */ 0); let dom_class = get_dom_class(unwrapped).unwrap(); if (dom_class.global.is_empty()) && (!globals.is_empty()) { - return false + return false; } globals.contains(dom_class.global) }