Skip to content

Commit

Permalink
chore: Address clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh committed Nov 23, 2023
1 parent 734bbe9 commit 036bcee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bin/src/main.rs
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
6 changes: 3 additions & 3 deletions matching/src/unordered_tree_matching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit 036bcee

Please sign in to comment.