From 9d671058df1b9f5cd2bf54b833387b9df014c7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 14 Sep 2017 09:59:48 +0200 Subject: [PATCH] style: Reformat the signature of insert_if_possible. --- components/style/sharing/mod.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/style/sharing/mod.rs b/components/style/sharing/mod.rs index ec818add99c..d795966fc5d 100644 --- a/components/style/sharing/mod.rs +++ b/components/style/sharing/mod.rs @@ -546,11 +546,13 @@ impl StyleSharingCache { /// /// NB: We pass a source for the validation data, rather than the data itself, /// to avoid memmoving at each function call. See rust issue #42763. - pub fn insert_if_possible(&mut self, - element: &E, - style: &ComputedValues, - validation_data_holder: Option<&mut StyleSharingTarget>, - dom_depth: usize) { + pub fn insert_if_possible( + &mut self, + element: &E, + style: &ComputedValues, + validation_data_holder: Option<&mut StyleSharingTarget>, + dom_depth: usize, + ) { let parent = match element.traversal_parent() { Some(element) => element, None => {