From 350be4f0dc862ea9b02a492356280ff63d4ace4e Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 9 Jul 2025 17:30:07 -0600 Subject: refactor: inline file_path variable --- src/authorization/cedar_authorizer.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/authorization/cedar_authorizer.rs') diff --git a/src/authorization/cedar_authorizer.rs b/src/authorization/cedar_authorizer.rs index 5ed810a7..f86bcf03 100644 --- a/src/authorization/cedar_authorizer.rs +++ b/src/authorization/cedar_authorizer.rs @@ -57,8 +57,7 @@ impl CedarAuthorizer { let mut policies = cedar_policy::PolicySet::new(); for entry in fs::read_dir(path)? { - let file_path = entry?.path(); - policies.merge(&Self::load_from(&file_path)?, true)?; + policies.merge(&Self::load_from(&entry?.path())?, true)?; } return Ok(policies); } -- cgit v1.2.3