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 <[email protected]>
  • Loading branch information
suchapalaver committed Oct 10, 2023
1 parent 8b0702d commit c38edf0
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 c38edf0

Please sign in to comment.