From 08f5df1f0a2e22876a5b49a4f9e2e05a61df882a Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2026 21:56:20 +0100 Subject: make clippy happy again --- src/remake/switch.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/remake/switch.rs') 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( 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(©, &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(©, &mut doc, &record_path) { + warn!(error = %error, "Could not carry the remake record into the new epoch"); } let heads = copy.get_heads(); -- cgit v1.3.1