Skip to content

Commit

Permalink
Update dashmap to v5.1.0
Browse files Browse the repository at this point in the history
This reinstates the v5 version of `dashmap`, which previously had to be
reverted due to a soundness issue that has since been fixed in the
v5.1.0 version.
  • Loading branch information
arqunis committed Mar 15, 2022
1 parent 146b1ac commit 28e0311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -146,7 +146,7 @@ version = "0.3.16"
version = "2.0"

[dependencies.dashmap]
version = "4.0.2"
version = "5.1.0"
features = ["serde"]
optional = true

Expand Down
4 changes: 1 addition & 3 deletions src/cache/mod.rs
Expand Up @@ -95,9 +95,7 @@ impl<F: FromStr> FromStrAndCache for F {

/// Iterator given to the selector closure in [`Cache::channel_messages_field`].
// Wrapper around a specific iterator type to allow swapping out iterators on cache design changes
//
// Clone impl waiting on this https://github.com/xacrimon/dashmap/pull/152
//#[derive(Clone)]
#[derive(Clone)]
pub struct MessageIterator<'a, S: BuildHasher + Clone>(
Iter<'a, MessageId, Message, S, DashMap<MessageId, Message, S>>,
);
Expand Down

0 comments on commit 28e0311

Please sign in to comment.