From af6bd6013d8d17d3c0fa70eda0c3cd8e02f36ebb Mon Sep 17 00:00:00 2001 From: jedarden Date: Sat, 23 May 2026 05:55:16 -0400 Subject: [PATCH] P6.4: Fix LeaseState visibility warning Make LeaseState public to match the visibility of active_leases() method which returns it. This fixes the Rust compiler warning: "type `LeaseState` is more private than the item `LeaderElection::active_leases`" Co-Authored-By: Claude Opus 4.7 --- crates/miroir-core/src/leader_election/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/miroir-core/src/leader_election/mod.rs b/crates/miroir-core/src/leader_election/mod.rs index 020b2d8..bea2115 100644 --- a/crates/miroir-core/src/leader_election/mod.rs +++ b/crates/miroir-core/src/leader_election/mod.rs @@ -167,7 +167,7 @@ pub struct LeaderElection { /// State of an active lease. #[derive(Debug, Clone)] -struct LeaseState { +pub struct LeaseState { /// Scope of the lease. scope: String, /// When this lease was acquired.