aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/vote.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-26 21:56:20 +0100
committertv <tv@krebsco.de>2026-10-26 21:56:20 +0100
commitf937094b9c585b0b1f1f404ee1f962d97dcc2e80 (patch)
tree3c4e5ba952c6babc5fee757995f838ba2deb909b /src/remake/vote.rs
parent7dc2b728ca868ec7ed5f7b72eef43b0a0087ae04 (diff)
make clippy happy again
Diffstat (limited to 'src/remake/vote.rs')
-rw-r--r--src/remake/vote.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/remake/vote.rs b/src/remake/vote.rs
index 9bc8890..d5b167f 100644
--- a/src/remake/vote.rs
+++ b/src/remake/vote.rs
@@ -272,10 +272,10 @@ pub(super) async fn cast<H: Host>(host: &H) {
return;
};
// Only with the content in hand: a committed remake must have it on a majority.
- if let Some(reference) = &content {
- if content::available_or_fetch(host, reference).is_none() {
- return;
- }
+ if let Some(reference) = &content
+ && content::available_or_fetch(host, reference).is_none()
+ {
+ return;
}
// Spread over half a keepalive interval, so later voters see the earlier votes
// (the worker checks every second).