From ef6babf31b4fb61fee835035159741c32d3b6c6e Mon Sep 17 00:00:00 2001 From: Elijah Potter Date: Sat, 23 Nov 2024 13:11:27 -0700 Subject: [PATCH] style: remove redundant calls to `::default()` --- harper-core/src/linting/repeated_words.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/harper-core/src/linting/repeated_words.rs b/harper-core/src/linting/repeated_words.rs index bacb7269..be9d0bb2 100644 --- a/harper-core/src/linting/repeated_words.rs +++ b/harper-core/src/linting/repeated_words.rs @@ -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); } }