From bb91ca616c9f79d39964a535f4ff6cc11b8df879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20Podgor=C5=A1ek?= Date: Fri, 6 Jan 2017 20:57:16 +0100 Subject: [PATCH] Tidy up rust code with regard to new rule (no = in beginning of line) --- components/layout/block.rs | 4 ++-- components/layout/construct.rs | 4 ++-- components/style/thread_state.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/layout/block.rs b/components/layout/block.rs index f7370e00a4e..5934a506eda 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -1283,8 +1283,8 @@ impl BlockFlow { content_block_size, available_block_size)); - candidate_block_size_iterator.candidate_value - = solution.unwrap().block_size; + candidate_block_size_iterator.candidate_value = + solution.unwrap().block_size; } } } diff --git a/components/layout/construct.rs b/components/layout/construct.rs index 7c039d38729..6671a07b4ad 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -1290,8 +1290,8 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode> for kid in node.children() { // CSS 2.1 ยง 17.2.1. Treat all non-column child fragments of `table-column-group` // as `display: none`. - if let ConstructionResult::ConstructionItem(ConstructionItem::TableColumnFragment(fragment)) - = kid.swap_out_construction_result() { + if let ConstructionResult::ConstructionItem(ConstructionItem::TableColumnFragment(fragment)) = + kid.swap_out_construction_result() { col_fragments.push(fragment) } } diff --git a/components/style/thread_state.rs b/components/style/thread_state.rs index c06a5833a7d..ab0672e2503 100644 --- a/components/style/thread_state.rs +++ b/components/style/thread_state.rs @@ -51,8 +51,8 @@ macro_rules! thread_types ( ( $( $fun:ident = $flag:ident ; )* ) => ( } #[cfg(debug_assertions)] - static TYPES: &'static [ThreadState] - = &[ $( $flag ),* ]; + static TYPES: &'static [ThreadState] = + &[ $( $flag ),* ]; )); thread_types! {