Skip to content

Commit

Permalink
Better align permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
AZWN committed Jun 13, 2024
1 parent 51feb73 commit 33d8f35
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scopegraphs/src/completeness/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ struct ScopeExtPermInner<
CMPL: UserClosed<LABEL, DATA>, // Bound required for Drop implementation
> {
/// Scope for which this object witnesses the permission to extend.
pub(super) scope: Scope,
scope: Scope,
/// Label with which [scope] may be extended
pub(super) label: LABEL,
label: LABEL,
/// Scope graph in which the scope may be extended.
pub(super) sg: &'ext CMPL,
sg: &'ext CMPL,
_data: PhantomData<DATA>, // FIXME: required for using `where CMPL: UserClosed<LABEL, DATA>` in impl blocks. Can it be removed some way?
}

Expand Down Expand Up @@ -171,11 +171,11 @@ impl<'ext, LABEL: Hash + Label + Debug, DATA, CMPL: UserClosed<LABEL, DATA>>
where
CMPL: UserClosed<LABEL, DATA>,
{
pub(crate) fn scope(&self) -> &Scope {
pub(super) fn scope(&self) -> &Scope {
&self.0.scope
}

pub(crate) fn label(&self) -> &LABEL {
pub(super) fn label(&self) -> &LABEL {
&self.0.label
}

Expand Down

0 comments on commit 33d8f35

Please sign in to comment.