diff options
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); } |
