From 87893c8eaa4ae6dd0700ad0be2227758a8e99167 Mon Sep 17 00:00:00 2001 From: augustuswm Date: Wed, 27 Mar 2024 10:29:59 -0500 Subject: [PATCH] More path updates --- v-api-permission-derive/src/lib.rs | 10 +++++----- v-api-permission-derive/tests/derive.rs | 5 +---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/v-api-permission-derive/src/lib.rs b/v-api-permission-derive/src/lib.rs index 3c62309..887023c 100644 --- a/v-api-permission-derive/src/lib.rs +++ b/v-api-permission-derive/src/lib.rs @@ -674,7 +674,7 @@ fn as_scope_trait_tokens( fn from_scope( scope: T, - ) -> Permissions<#permission_type> + ) -> v_model::Permissions<#permission_type> where T: Iterator + Clone, S: AsRef, @@ -777,7 +777,7 @@ fn permission_storage_contract_tokens( }); quote! { - fn contract(collection: &Permissions) -> Permissions { + fn contract(collection: &v_model::Permissions) -> v_model::Permissions { let mut base = ::contract(collection); let mut contracted = Vec::new(); @@ -858,10 +858,10 @@ fn permission_storage_expand_tokens( quote! { fn expand( - collection: &Permissions, + collection: &v_model::Permissions, actor: &newtype_uuid::TypedUuid, - actor_permissions: Option<&Permissions>, - ) -> Permissions { + actor_permissions: Option<&v_model::Permissions>, + ) -> v_model::Permissions { let mut base = ::expand(collection, actor, actor_permissions.clone()); let mut expanded = Vec::new(); diff --git a/v-api-permission-derive/tests/derive.rs b/v-api-permission-derive/tests/derive.rs index 24202a2..62df605 100644 --- a/v-api-permission-derive/tests/derive.rs +++ b/v-api-permission-derive/tests/derive.rs @@ -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() {