diff --git a/bin/src/main.rs b/bin/src/main.rs index bd7e5c9..85587c6 100644 --- a/bin/src/main.rs +++ b/bin/src/main.rs @@ -1,16 +1,16 @@ fn main() { - let base = r#" + let _base = r#" public interface Repository { } "#; - let left: &str = r#" + let _left: &str = r#" public interface Repository { void create(Pessoa pessoa); void delete(Pessoa pessoa); } "#; - let right = r#" + let _right = r#" public interface Repository { void create(Pessoa pessoa); void delete(Pessoa pessoa); diff --git a/matching/src/unordered_tree_matching.rs b/matching/src/unordered_tree_matching.rs index a5e7f32..c7947dd 100644 --- a/matching/src/unordered_tree_matching.rs +++ b/matching/src/unordered_tree_matching.rs @@ -114,15 +114,15 @@ fn compute_matching_score<'a>(left: &'a CSTNode, right: &'a CSTNode) -> usize { value: value_right, .. }, ) if value_left == value_right => { - return 1; + 1 } (_, _) => { - return 0; + 0 } } } (_, _) => { - return 0; + 0 } } }