summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-09 17:30:07 -0600
committermo khan <mo@mokhan.ca>2025-07-09 17:30:07 -0600
commit350be4f0dc862ea9b02a492356280ff63d4ace4e (patch)
tree265bd2428792fbecac2971628c152787abb39860
parentc203a32775e10f9a5a8e474ab36631b95cf13bb3 (diff)
refactor: inline file_path variable
-rw-r--r--src/authorization/cedar_authorizer.rs3
1 files changed, 1 insertions, 2 deletions
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);
}