Skip to content

Make CI happy again #94

Make CI happy again

Make CI happy again #94

GitHub Actions / clippy succeeded Aug 18, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (0)
Filtered Findings (2)

src/map.rs|41 col 5| warning: doc list item without indentation
--> src/map.rs:41:5
|
41 | /// thresholds.
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: #[warn(clippy::doc_lazy_continuation)] on by default
help: indent this line
|
41 | /// thresholds.
| ++
src/map.rs|490 col 34| warning: casting to the same type is unnecessary (usize -> usize)
--> src/map.rs:490:34
|
490 | let requested_capacity = if size >= MAXIMUM_CAPACITY / 2 {
| ________________^
491 | | MAXIMUM_CAPACITY
492 | | } else {
493 | | // round the requested_capacity to the next power of to from 1.5 * size + 1
... |
497 | | std::cmp::min(MAXIMUM_CAPACITY, size.next_power_of_two())
498 | | } as usize;
| |
^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: #[warn(clippy::unnecessary_cast)] on by default
help: try
|
490 ~ let requested_capacity = if size >= MAXIMUM_CAPACITY / 2 {
491 + MAXIMUM_CAPACITY
492 + } else {
493 + // round the requested_capacity to the next power of to from 1.5 * size + 1
494 + // TODO: find out if this is neccessary
495 + let size = size + (size >> 1) + 1;
496 +
497 + std::cmp::min(MAXIMUM_CAPACITY, size.next_power_of_two())
498 ~ };
|