Skip to content

Commit

Permalink
style: remove redundant calls to ::default()
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-potter committed Nov 23, 2024
1 parent cd92a7a commit ef6babf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions harper-core/src/linting/repeated_words.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ mod tests {

#[test]
fn catches_basic() {
assert_lint_count("I wanted the the banana.", RepeatedWords::default(), 1)
assert_lint_count("I wanted the the banana.", RepeatedWords, 1)
}

#[test]
fn does_not_lint_homographs_address() {
assert_lint_count("To address address problems.", RepeatedWords::default(), 0);
assert_lint_count("To address address problems.", RepeatedWords, 0);
}

#[test]
fn does_not_lint_homographs_record() {
assert_lint_count("To record record profits.", RepeatedWords::default(), 0);
assert_lint_count("To record record profits.", RepeatedWords, 0);
}
}

0 comments on commit ef6babf

Please sign in to comment.