Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moka-cht v0.4.2 #4

Merged
merged 11 commits into from
Sep 5, 2021
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
rust:
- stable
- beta
- 1.41.1 # MSRV
# - 1.41.1 # MSRV

steps:
- name: Checkout moka-cht
Expand Down
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@

## Version 0.5.0

### Changed

- Updated the dependencies. ([#1][gh-pull-0001])
- (Internal change) Replaced deprecated `Atomic::compare_and_set_weak` of
crossbeam-epoch with `Atomic::compare_exchange_weak`. ([#1][gh-pull-0001])


## Version 0.4.2

- Forked from [cht-v0.4.1][cht-v041]. (The MIT License)
- Changed to a dual license of the MIT License and the Apache License (Version
2.0). ([#1][gh-pull-0001])

### Changed

- Updated the dependencies. ([#1][gh-pull-0001])
- Changed the default hasher from aHash to SipHash 1-3. ([#1][gh-pull-0001])
- (Internal change) Replaced deprecated `Atomic::compare_and_set_weak` of
crossbeam-epoch with `Atomic::compare_exchange_weak`. ([#1][gh-pull-0001])

### Removed

Expand Down
4 changes: 4 additions & 0 deletions src/map/bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ impl<'g, K: 'g + Eq, V: 'g> BucketArray<K, V> {
}
}

// https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
#[allow(clippy::type_complexity)]
pub(crate) fn insert(
&self,
guard: &'g Guard,
Expand Down Expand Up @@ -176,6 +178,8 @@ impl<'g, K: 'g + Eq, V: 'g> BucketArray<K, V> {
}
}

// https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
#[allow(clippy::type_complexity)]
pub(crate) fn modify<F: FnMut(&K, &V) -> V>(
&self,
guard: &'g Guard,
Expand Down