aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/switch.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/switch.rs
parent7dc2b728ca868ec7ed5f7b72eef43b0a0087ae04 (diff)
make clippy happy again
Diffstat (limited to 'src/remake/switch.rs')
-rw-r--r--src/remake/switch.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/remake/switch.rs b/src/remake/switch.rs
index 903baea..ea56de6 100644
--- a/src/remake/switch.rs
+++ b/src/remake/switch.rs
@@ -232,10 +232,8 @@ async fn switch<H: Host>(
let mut doc = snapshot.doc.with_actor(actor);
// Keep this remake's record visible in the new epoch, for its history.
- if carry_record {
- if let Err(error) = store::copy_path(&copy, &mut doc, &record_path) {
- warn!(error = %error, "Could not carry the remake record into the new epoch");
- }
+ if carry_record && let Err(error) = store::copy_path(&copy, &mut doc, &record_path) {
+ warn!(error = %error, "Could not carry the remake record into the new epoch");
}
let heads = copy.get_heads();