Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ogzhanolguncu committed Sep 17, 2023
1 parent e2144e9 commit ecc3c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl MessageBrokerStore {
self.data
.write()
.map_err(|_| "Could not acquire data write lock")
.and_then(|mut data| Ok(data.entry(subject).or_insert_with(HashSet::new).insert(sub)))
.map(|mut data| data.entry(subject).or_insert_with(HashSet::new).insert(sub))
}

pub fn remove_subscription(
Expand Down

0 comments on commit ecc3c70

Please sign in to comment.