From 5e87cedb95c18ef4168c3551a2d09ecc045090ab Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Fri, 9 Jun 2023 13:26:18 +0200 Subject: [PATCH] clippy --- pageserver/src/tenant.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pageserver/src/tenant.rs b/pageserver/src/tenant.rs index e04f50bea7..4d959e33af 100644 --- a/pageserver/src/tenant.rs +++ b/pageserver/src/tenant.rs @@ -4390,9 +4390,10 @@ mod tests { // The only operation you can do on an empty timeline is to write new data. // Repartition is the only code on the write path that requires other keys to be present. // Make sure it works. - let cache = tline.partitioning.lock().unwrap(); - assert_eq!(cache.1, Lsn(0), "must not have repartitioned yet, otherwise the repartition call below might just use the cache"); - drop(cache); + { + let cache = tline.partitioning.lock().unwrap(); + assert_eq!(cache.1, Lsn(0), "must not have repartitioned yet, otherwise the repartition call below might just use the cache"); + } tline .repartition(Lsn(0x20), tline.get_compaction_target_size(), &ctx) .await?;