Skip to content

Commit

Permalink
Revert rust 1.62 feature usage (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm authored Aug 18, 2022
1 parent 03483ee commit e0b255f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/loans/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl<T: Config> Pallet<T> {
role: PoolRole,
) -> Result<(), BadOrigin> {
T::Permission::has(PermissionScope::Pool(pool_id), sender, Role::PoolRole(role))
.then_some(())
.then(|| ())
.ok_or(BadOrigin)
}

Expand Down

0 comments on commit e0b255f

Please sign in to comment.