Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
fix 'needless_return' clippy warning
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Livesey <jlivesey@gmail.com>
  • Loading branch information
suchapalaver committed Sep 17, 2023
1 parent 5660d32 commit 8d07633
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions validator/src/permissions/state_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ impl IdentitySource for IdentityView {
.map(|mut entry| match entry.get_field_type() {
Policy_EntryType::PERMIT_KEY => Ok(Permission::PermitKey(entry.take_key())),
Policy_EntryType::DENY_KEY => Ok(Permission::DenyKey(entry.take_key())),
Policy_EntryType::ENTRY_TYPE_UNSET => {
return Err(IdentityError::ReadError(format!(
"policy {} is contains invalid type",
entry.get_key()
)))
}
Policy_EntryType::ENTRY_TYPE_UNSET => Err(IdentityError::ReadError(format!(
"policy {} is contains invalid type",
entry.get_key()
))),
})
.collect();

Expand Down

0 comments on commit 8d07633

Please sign in to comment.