mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
40 lines
1.7 KiB
Text
40 lines
1.7 KiB
Text
error: Prefer FxHashMap over HashMap, it has better performance and we don't need any collision prevention in clippy
|
|
--> $DIR/fxhash.rs:18:24
|
|
|
|
|
18 | use std::collections::{HashMap, HashSet};
|
|
| ^^^^^^^ help: use: `FxHashMap`
|
|
|
|
|
= note: `-D clippy::default-hash-types` implied by `-D warnings`
|
|
|
|
error: Prefer FxHashSet over HashSet, it has better performance and we don't need any collision prevention in clippy
|
|
--> $DIR/fxhash.rs:18:33
|
|
|
|
|
18 | use std::collections::{HashMap, HashSet};
|
|
| ^^^^^^^ help: use: `FxHashSet`
|
|
|
|
error: Prefer FxHashMap over HashMap, it has better performance and we don't need any collision prevention in clippy
|
|
--> $DIR/fxhash.rs:22:15
|
|
|
|
|
22 | let _map: HashMap<String, String> = HashMap::default();
|
|
| ^^^^^^^ help: use: `FxHashMap`
|
|
|
|
error: Prefer FxHashMap over HashMap, it has better performance and we don't need any collision prevention in clippy
|
|
--> $DIR/fxhash.rs:22:41
|
|
|
|
|
22 | let _map: HashMap<String, String> = HashMap::default();
|
|
| ^^^^^^^ help: use: `FxHashMap`
|
|
|
|
error: Prefer FxHashSet over HashSet, it has better performance and we don't need any collision prevention in clippy
|
|
--> $DIR/fxhash.rs:23:15
|
|
|
|
|
23 | let _set: HashSet<String> = HashSet::default();
|
|
| ^^^^^^^ help: use: `FxHashSet`
|
|
|
|
error: Prefer FxHashSet over HashSet, it has better performance and we don't need any collision prevention in clippy
|
|
--> $DIR/fxhash.rs:23:33
|
|
|
|
|
23 | let _set: HashSet<String> = HashSet::default();
|
|
| ^^^^^^^ help: use: `FxHashSet`
|
|
|
|
error: aborting due to 6 previous errors
|
|
|