diff options
author | teymour-aldridge <teymour.aldridge@icloud.com> | 2021-02-05 14:46:09 +0000 |
---|---|---|
committer | teymour-aldridge <teymour.aldridge@icloud.com> | 2021-02-05 14:46:09 +0000 |
commit | 217147b2e41b9e15e04fb2935882a478c616bd82 (patch) | |
tree | de3eba62a91b5e971920497ef4e00fb6b1c8a324 /components/script/dom/node.rs | |
parent | ff767b13a93c0ca50fbe7e029ef57f0fee960a8d (diff) | |
download | servo-217147b2e41b9e15e04fb2935882a478c616bd82.tar.gz servo-217147b2e41b9e15e04fb2935882a478c616bd82.zip |
fmt
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 8382d4b4145..3ad3e656518 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -69,7 +69,7 @@ use devtools_traits::NodeInfo; use dom_struct::dom_struct; use euclid::default::{Point2D, Rect, Size2D, Vector2D}; use html5ever::{Namespace, Prefix, QualName}; -use js::jsapi::{JSObject}; +use js::jsapi::JSObject; use libc::{self, c_void, uintptr_t}; use malloc_size_of::{MallocSizeOf, MallocSizeOfOps}; use msg::constellation_msg::{BrowsingContextId, PipelineId}; @@ -1321,9 +1321,7 @@ where /// If the given untrusted node address represents a valid DOM node in the given runtime, /// returns it. #[allow(unsafe_code)] -pub unsafe fn from_untrusted_node_address( - candidate: UntrustedNodeAddress, -) -> DomRoot<Node> { +pub unsafe fn from_untrusted_node_address(candidate: UntrustedNodeAddress) -> DomRoot<Node> { // https://github.com/servo/servo/issues/6383 let candidate: uintptr_t = mem::transmute(candidate.0); // let object: *mut JSObject = jsfriendapi::bindgen::JS_GetAddressableObject(runtime, |