From 1221acc75b7589f719c0157f239726d5bf270efc Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 14 Jul 2025 16:02:44 -0600 Subject: chore: fix linter error with type complexity --- src/authorization/entities.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/authorization/entities.rs b/src/authorization/entities.rs index ec1a7a1b..050f6f26 100644 --- a/src/authorization/entities.rs +++ b/src/authorization/entities.rs @@ -1,6 +1,10 @@ use crate::gitlab::Api; use serde::Serialize; use std::collections::HashSet; +use std::future::Future; +use std::pin::Pin; + +type BoxFuture<'a, T> = Pin + 'a>>; // Cedar entity structures // Note: We define custom types instead of using cedar_policy::Entity directly because: @@ -102,9 +106,7 @@ impl EntitiesRepository { group_id: u64, entities: &'a mut Vec, groups: &'a mut HashSet, - ) -> std::pin::Pin< - Box>> + 'a>, - > { + ) -> BoxFuture<'a, Result<(), Box>> { Box::pin(async move { if groups.contains(&group_id) { return Ok(()); -- cgit v1.2.3