chore: Release imbl version 2.0.3 #39
clippy
9 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 9 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.75.0 (82e1608df 2023-12-21)
- cargo 1.75.0 (1d8b05cdd 2023-11-20)
- clippy 0.1.75 (82e1608 2023-12-21)
Annotations
Check warning on line 439 in src/hash/map.rs
github-actions / clippy
unnecessary map of the identity function
warning: unnecessary map of the identity function
--> src/hash/map.rs:438:55
|
438 | .get(hash_key(&*self.hasher, key), 0, key)
| _______________________________________________________^
439 | | .map(|(k, v)| (k, v))
| |_________________________________^ help: remove the call to `map`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
Check warning on line 1903 in src/ord/map.rs
github-actions / clippy
unnecessary map of the identity function
warning: unnecessary map of the identity function
--> src/ord/map.rs:1903:28
|
1903 | self.it.next_back().map(|(k, v)| (k, v))
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the call to `map`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
Check warning on line 1890 in src/ord/map.rs
github-actions / clippy
unnecessary map of the identity function
warning: unnecessary map of the identity function
--> src/ord/map.rs:1890:23
|
1890 | self.it.next().map(|(k, v)| (k, v))
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the call to `map`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
Check warning on line 712 in src/ord/map.rs
github-actions / clippy
unnecessary map of the identity function
warning: unnecessary map of the identity function
--> src/ord/map.rs:711:40
|
711 | .lookup_next_mut(pool, key)
| ________________________________________^
712 | | .map(|(ref k, ref mut v)| (k, v))
| |_____________________________________________^ help: remove the call to `map`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
Check warning on line 681 in src/ord/map.rs
github-actions / clippy
unnecessary map of the identity function
warning: unnecessary map of the identity function
--> src/ord/map.rs:680:40
|
680 | .lookup_prev_mut(pool, key)
| ________________________________________^
681 | | .map(|(ref k, ref mut v)| (k, v))
| |_____________________________________________^ help: remove the call to `map`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
Check warning on line 503 in src/ord/map.rs
github-actions / clippy
unnecessary map of the identity function
warning: unnecessary map of the identity function
--> src/ord/map.rs:503:35
|
503 | self.root.lookup_next(key).map(|(k, v)| (k, v))
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the call to `map`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
Check warning on line 478 in src/ord/map.rs
github-actions / clippy
unnecessary map of the identity function
warning: unnecessary map of the identity function
--> src/ord/map.rs:478:35
|
478 | self.root.lookup_prev(key).map(|(k, v)| (k, v))
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the call to `map`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
Check warning on line 453 in src/ord/map.rs
github-actions / clippy
unnecessary map of the identity function
warning: unnecessary map of the identity function
--> src/ord/map.rs:453:30
|
453 | self.root.lookup(key).map(|(k, v)| (k, v))
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the call to `map`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
= note: `#[warn(clippy::map_identity)]` on by default
Check warning on line 25 in src/nodes/hamt.rs
github-actions / clippy
manual implementation of `BuildHasher::hash_one`
warning: manual implementation of `BuildHasher::hash_one`
--> src/nodes/hamt.rs:25:5
|
25 | hasher.finish() as HashBits
| ^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_hash_one
= note: `#[warn(clippy::manual_hash_one)]` on by default
help: try
|
23 ~
24 ~
25 ~ bh.hash_one(&key) as HashBits
|