Skip to content

Commit d89bb50

Browse files
committed
Make lint modules private
1 parent a186d9f commit d89bb50

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

clippy_dev/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub fn gen_modules_list<'a>(lints: impl Iterator<Item = &'a Lint>) -> Vec<String
105105
lints
106106
.map(|l| &l.module)
107107
.unique()
108-
.map(|module| format!("pub mod {};", module))
108+
.map(|module| format!("mod {};", module))
109109
.sorted()
110110
.collect::<Vec<String>>()
111111
}
@@ -503,10 +503,7 @@ fn test_gen_modules_list() {
503503
Lint::new("should_assert_eq", "group1", "abc", None, "module_name"),
504504
Lint::new("incorrect_stuff", "group3", "abc", None, "another_module"),
505505
];
506-
let expected = vec![
507-
"pub mod another_module;".to_string(),
508-
"pub mod module_name;".to_string(),
509-
];
506+
let expected = vec!["mod another_module;".to_string(), "mod module_name;".to_string()];
510507
assert_eq!(expected, gen_modules_list(lints.iter()));
511508
}
512509

0 commit comments

Comments
 (0)