Skip to content

Commit 9ff781f

Browse files
committed
fix(lint): remove default() calls on unit structs in tests
1 parent 9d624be commit 9ff781f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/inline_config_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ fn test_fix_md009_strict_respects_disable_line() {
747747
fn test_fix_md034_respects_disable_enable() {
748748
use rumdl_lib::rules::MD034NoBareUrls;
749749

750-
let rule = MD034NoBareUrls::default();
750+
let rule = MD034NoBareUrls;
751751

752752
let content = "# Test\n\n<!-- rumdl-disable MD034 -->\nVisit http://example.com for info\n<!-- rumdl-enable MD034 -->\n\nVisit http://other.com for info\n";
753753

@@ -831,7 +831,7 @@ fn test_fix_global_disable_preserves_all_content() {
831831

832832
let rules_to_test: Vec<Box<dyn Rule>> = vec![
833833
Box::new(rumdl_lib::rules::MD009TrailingSpaces::new(2, false)),
834-
Box::new(rumdl_lib::rules::MD034NoBareUrls::default()),
834+
Box::new(rumdl_lib::rules::MD034NoBareUrls),
835835
];
836836

837837
for rule in &rules_to_test {

0 commit comments

Comments
 (0)