Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Mar 27, 2024
1 parent 87893c8 commit a10c1e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion v-api/src/permissions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::collections::BTreeSet;
use v_api_permission_derive::v_api;
use v_model::permissions::AsScope;
use v_model::permissions::{
AsScopeInternal, Permission, PermissionStorage, PermissionStorageInternal, Permissions,
AsScopeInternal, Permission, PermissionStorage, PermissionStorageInternal,
};

pub trait VAppPermission:
Expand Down
10 changes: 6 additions & 4 deletions v-model/src/permissions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ pub trait AsScope: Sized {
fn from_scope_arg(scope_arg: &str) -> Permissions<Self> {
Self::from_scope(scope_arg.split(' '))
}
fn from_scope<T, S>(_scope: T) -> Permissions<Self>
#[allow(unused)]
fn from_scope<T, S>(scope: T) -> Permissions<Self>
where
T: Iterator<Item = S> + Clone,
S: AsRef<str>,
Expand All @@ -233,10 +234,11 @@ pub trait PermissionStorage {
{
Permissions::default()
}
#[allow(unused)]
fn expand(
_collection: &Permissions<Self>,
_actor: &TypedUuid<UserId>,
_actor_permissions: Option<&Permissions<Self>>,
collection: &Permissions<Self>,
actor: &TypedUuid<UserId>,
actor_permissions: Option<&Permissions<Self>>,
) -> Permissions<Self>
where
Self: Sized,
Expand Down

0 comments on commit a10c1e7

Please sign in to comment.