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:
parent
f1d14d6bc8
commit
af6bd6013d
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue