Skip to content
Snippets Groups Projects
Commit a420bb61 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

clippy :man_facepalming:

parent 65772940
No related branches found
No related tags found
1 merge request!215refac membership
Pipeline #34850 failed
......@@ -848,7 +848,7 @@ pub mod pallet {
block_number: T::BlockNumber,
) -> Result<T::IdtyIndex, DispatchError> {
// first get issuer details
let creator_index = IdentityIndexOf::<T>::try_get(&issuer_key)
let creator_index = IdentityIndexOf::<T>::try_get(issuer_key)
.map_err(|_| Error::<T>::IdtyIndexNotFound)?;
let creator_idty_val =
Identities::<T>::try_get(creator_index).map_err(|_| Error::<T>::IdtyNotFound)?;
......@@ -869,7 +869,7 @@ pub mod pallet {
// 3. receiver key is not already used by another identity
ensure!(
!IdentityIndexOf::<T>::contains_key(&receiver_key),
!IdentityIndexOf::<T>::contains_key(receiver_key),
Error::<T>::IdtyAlreadyCreated
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment