diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-09 17:30:07 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-09 17:30:07 -0600 |
| commit | 350be4f0dc862ea9b02a492356280ff63d4ace4e (patch) | |
| tree | 265bd2428792fbecac2971628c152787abb39860 /src | |
| parent | c203a32775e10f9a5a8e474ab36631b95cf13bb3 (diff) | |
refactor: inline file_path variable
Diffstat (limited to 'src')
| -rw-r--r-- | src/authorization/cedar_authorizer.rs | 3 |
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); } |
