Skip to content

Commit

Permalink
More path updates
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Mar 27, 2024
1 parent 5696262 commit 87893c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 5 additions & 5 deletions v-api-permission-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ fn as_scope_trait_tokens(

fn from_scope<T, S>(
scope: T,
) -> Permissions<#permission_type>
) -> v_model::Permissions<#permission_type>
where
T: Iterator<Item = S> + Clone,
S: AsRef<str>,
Expand Down Expand Up @@ -777,7 +777,7 @@ fn permission_storage_contract_tokens(
});

quote! {
fn contract(collection: &Permissions<Self>) -> Permissions<Self> {
fn contract(collection: &v_model::Permissions<Self>) -> v_model::Permissions<Self> {
let mut base = <Self as v_model::permissions::PermissionStorage>::contract(collection);
let mut contracted = Vec::new();

Expand Down Expand Up @@ -858,10 +858,10 @@ fn permission_storage_expand_tokens(

quote! {
fn expand(
collection: &Permissions<Self>,
collection: &v_model::Permissions<Self>,
actor: &newtype_uuid::TypedUuid<v_model::UserId>,
actor_permissions: Option<&Permissions<Self>>,
) -> Permissions<Self> {
actor_permissions: Option<&v_model::Permissions<Self>>,
) -> v_model::Permissions<Self> {
let mut base = <Self as v_model::permissions::PermissionStorage>::expand(collection, actor, actor_permissions.clone());
let mut expanded = Vec::new();

Expand Down
5 changes: 1 addition & 4 deletions v-api-permission-derive/tests/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ use std::collections::BTreeSet;
use uuid::Uuid;
use v_api::permissions::VPermission;
use v_api_permission_derive::v_api;
use v_model::{
permissions::{AsScope, PermissionStorage},
Permissions,
};
use v_model::permissions::{AsScope, PermissionStorage};

#[test]
fn test_derive() {
Expand Down

0 comments on commit 87893c8

Please sign in to comment.