Avoid new_without_default_derive in DefaultHashTypes
This commit is contained in:
parent
1812707d39
commit
22ff5a3ef1
@ -266,7 +266,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
|
|||||||
reg.register_late_lint_pass(box serde_api::Serde);
|
reg.register_late_lint_pass(box serde_api::Serde);
|
||||||
reg.register_early_lint_pass(box utils::internal_lints::Clippy);
|
reg.register_early_lint_pass(box utils::internal_lints::Clippy);
|
||||||
reg.register_late_lint_pass(box utils::internal_lints::LintWithoutLintPass::default());
|
reg.register_late_lint_pass(box utils::internal_lints::LintWithoutLintPass::default());
|
||||||
reg.register_early_lint_pass(box utils::internal_lints::DefaultHashTypes::new());
|
reg.register_early_lint_pass(box utils::internal_lints::DefaultHashTypes::default());
|
||||||
reg.register_late_lint_pass(box utils::inspector::Pass);
|
reg.register_late_lint_pass(box utils::inspector::Pass);
|
||||||
reg.register_late_lint_pass(box utils::author::Pass);
|
reg.register_late_lint_pass(box utils::author::Pass);
|
||||||
reg.register_late_lint_pass(box types::TypePass);
|
reg.register_late_lint_pass(box types::TypePass);
|
||||||
|
@ -228,7 +228,7 @@ pub struct DefaultHashTypes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl DefaultHashTypes {
|
impl DefaultHashTypes {
|
||||||
pub fn new() -> Self {
|
pub fn default() -> Self {
|
||||||
let mut map = FxHashMap::default();
|
let mut map = FxHashMap::default();
|
||||||
map.insert("HashMap".to_owned(), "FxHashMap".to_owned());
|
map.insert("HashMap".to_owned(), "FxHashMap".to_owned());
|
||||||
map.insert("HashSet".to_owned(), "FxHashSet".to_owned());
|
map.insert("HashSet".to_owned(), "FxHashSet".to_owned());
|
||||||
|
Loading…
Reference in New Issue
Block a user