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 <noreply@anthropic.com>
This commit is contained in:
jedarden 2026-05-23 05:55:16 -04:00
parent f1d14d6bc8
commit af6bd6013d

View file

@ -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.