From f65282393d170509ff76b31256dc120a128a6ebc Mon Sep 17 00:00:00 2001 From: Joao Duarte Date: Sun, 26 Nov 2023 21:17:15 -0300 Subject: [PATCH] style: Run cargo fmt --- matching/src/unordered_tree_matching.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/matching/src/unordered_tree_matching.rs b/matching/src/unordered_tree_matching.rs index c7947dd..88e5f10 100644 --- a/matching/src/unordered_tree_matching.rs +++ b/matching/src/unordered_tree_matching.rs @@ -113,17 +113,11 @@ fn compute_matching_score<'a>(left: &'a CSTNode, right: &'a CSTNode) -> usize { CSTNode::Terminal { value: value_right, .. }, - ) if value_left == value_right => { - 1 - } - (_, _) => { - 0 - } + ) if value_left == value_right => 1, + (_, _) => 0, } } - (_, _) => { - 0 - } + (_, _) => 0, } } (_, _) => 0,