Skip to content

Commit

Permalink
Fix for Rust 1.85.0 (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
macpie authored Feb 21, 2025
1 parent 59e3a88 commit a276699
Show file tree
Hide file tree
Showing 21 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion boost_manager/src/activator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion boost_manager/src/purger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl ManagedTask for Purger {
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion boost_manager/src/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion boost_manager/src/watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
4 changes: 2 additions & 2 deletions file_store/src/file_info_poller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,8 @@ mod tests {
.0
.clone()
.into_iter()
.filter(|file_info| after.map_or(true, |v| file_info.timestamp > v))
.filter(|file_info| before.map_or(true, |v| file_info.timestamp <= v))
.filter(|file_info| after.is_none_or(|v| file_info.timestamp > v))
.filter(|file_info| before.is_none_or(|v| file_info.timestamp <= v))
.collect())
}

Expand Down
4 changes: 2 additions & 2 deletions file_store/src/file_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ impl FileStore {
None
}
})
.filter(move |info| after.map_or(true, |v| info.timestamp > v))
.filter(move |info| before.map_or(true, |v| info.timestamp <= v))
.filter(move |info| after.is_none_or(|v| info.timestamp > v))
.filter(move |info| before.is_none_or(|v| info.timestamp <= v))
.map(Ok);
stream::iter(filtered).boxed()
}
Expand Down
2 changes: 1 addition & 1 deletion iot_verifier/src/gateway_updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion iot_verifier/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion iot_verifier/src/witness_updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl ManagedTask for WitnessUpdaterServer {
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion mobile_config/src/mobile_radio_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl ManagedTask for MobileRadioTracker {
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion mobile_verifier/src/boosting_oracles/data_sets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion mobile_verifier/src/coverage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl ManagedTask for CoverageDaemon {
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion mobile_verifier/src/data_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl ManagedTask for DataSessionIngestor {
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion mobile_verifier/src/heartbeats/cbrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
2 changes: 1 addition & 1 deletion mobile_verifier/src/heartbeats/wifi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
2 changes: 1 addition & 1 deletion mobile_verifier/src/radio_threshold.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion mobile_verifier/src/rewarder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion mobile_verifier/src/sp_boosted_rewards_bans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion mobile_verifier/src/speedtests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion mobile_verifier/src/subscriber_location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion mobile_verifier/src/unique_connections/ingestor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ where
Box::pin(
handle
.map_err(anyhow::Error::from)
.and_then(|result| async move { result.map_err(anyhow::Error::from) }),
.and_then(|result| async move { result }),
)
}
}
Expand Down

0 comments on commit a276699

Please sign in to comment.