]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/utils/internal_lints.rs
Avoid new_without_default_derive in DefaultHashTypes
[rust.git] / clippy_lints / src / utils / internal_lints.rs
index 0da3ad83b847bd66634e9ec78264ca3231fc0950..260ced14cb4366a5af87ce988bc5c9a761a53d10 100644 (file)
@@ -228,7 +228,7 @@ pub struct DefaultHashTypes {
 }
 
 impl DefaultHashTypes {
-    pub fn new() -> Self {
+    pub fn default() -> Self {
         let mut map = FxHashMap::default();
         map.insert("HashMap".to_owned(), "FxHashMap".to_owned());
         map.insert("HashSet".to_owned(), "FxHashSet".to_owned());