Skip to content

Commit e0475fa

Browse files
authored
Merge pull request #300 from vruello/fix-clippy-1.90
Fix clippy warnings in rust 1.90
2 parents a6895ff + dbf7f47 commit e0475fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/subscription.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ async fn reload_subscriptions(
165165
// mem_subscriptions is indexed on "public version"
166166
// To know whether something has changed, we must rely "on internal version"
167167
let mem_subscriptions_internal_version: HashSet<InternalVersion> = mem_subscriptions
168-
.iter()
169-
.map(|(_, subscription)| subscription.data().internal_version())
168+
.values()
169+
.map(|subscription| subscription.data().internal_version())
170170
.collect();
171171

172172
for subscription_data in db_subscriptions {
@@ -258,8 +258,8 @@ async fn reload_subscriptions(
258258
debug!(
259259
"Active subscriptions are: {}",
260260
mem_subscriptions
261-
.iter()
262-
.map(|(_, subscription)| format!(
261+
.values()
262+
.map(|subscription| format!(
263263
"\"{}\" (uuid:{}, internal_version:{}, public_version:{})",
264264
subscription.data.name(),
265265
subscription.data.uuid(),

0 commit comments

Comments
 (0)