Skip to content

Commit 22ff5a3

Browse files
committed
Avoid new_without_default_derive in DefaultHashTypes
1 parent 1812707 commit 22ff5a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
266266
reg.register_late_lint_pass(box serde_api::Serde);
267267
reg.register_early_lint_pass(box utils::internal_lints::Clippy);
268268
reg.register_late_lint_pass(box utils::internal_lints::LintWithoutLintPass::default());
269-
reg.register_early_lint_pass(box utils::internal_lints::DefaultHashTypes::new());
269+
reg.register_early_lint_pass(box utils::internal_lints::DefaultHashTypes::default());
270270
reg.register_late_lint_pass(box utils::inspector::Pass);
271271
reg.register_late_lint_pass(box utils::author::Pass);
272272
reg.register_late_lint_pass(box types::TypePass);

clippy_lints/src/utils/internal_lints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ pub struct DefaultHashTypes {
228228
}
229229

230230
impl DefaultHashTypes {
231-
pub fn new() -> Self {
231+
pub fn default() -> Self {
232232
let mut map = FxHashMap::default();
233233
map.insert("HashMap".to_owned(), "FxHashMap".to_owned());
234234
map.insert("HashSet".to_owned(), "FxHashSet".to_owned());

0 commit comments

Comments
 (0)