difftreelog
cargo fmt
in: master
2 files changed
pallets/proxy-rmrk-core/src/lib.rsdiffbeforeafterboth402 match new_owner {405 match new_owner {403 RmrkAccountIdOrCollectionNftTuple::AccountId(account_id) => {406 RmrkAccountIdOrCollectionNftTuple::AccountId(account_id) => {404 target_owner = T::CrossAccountId::from_sub(account_id);407 target_owner = T::CrossAccountId::from_sub(account_id);405 },408 }406 RmrkAccountIdOrCollectionNftTuple::CollectionAndNftTuple(target_collection_id, target_nft_id) => {409 RmrkAccountIdOrCollectionNftTuple::CollectionAndNftTuple(410 target_collection_id,411 target_nft_id,412 ) => {407 let target_collection_id = Self::unique_collection_id(target_collection_id)?;413 let target_collection_id = Self::unique_collection_id(target_collection_id)?;408414471 let new_owner = match new_owner {477 let new_owner = match new_owner {472 RmrkAccountIdOrCollectionNftTuple::AccountId(account_id) => {478 RmrkAccountIdOrCollectionNftTuple::AccountId(account_id) => {473 T::CrossAccountId::from_sub(account_id)479 T::CrossAccountId::from_sub(account_id)474 },480 }475 RmrkAccountIdOrCollectionNftTuple::CollectionAndNftTuple(target_collection_id, target_nft_id) => {481 RmrkAccountIdOrCollectionNftTuple::CollectionAndNftTuple(482 target_collection_id,483 target_nft_id,484 ) => {476 let target_collection_id = Self::unique_collection_id(target_collection_id)?;485 let target_collection_id = Self::unique_collection_id(target_collection_id)?;477486pallets/structure/src/lib.rsdiffbeforeafterboth--- a/pallets/structure/src/lib.rs
+++ b/pallets/structure/src/lib.rs
@@ -203,12 +203,8 @@
None => user,
};
- Self::get_checked_indirect_owner(
- collection,
- token,
- for_nest,
- budget
- ).map(|indirect_owner| indirect_owner == target_parent)
+ Self::get_checked_indirect_owner(collection, token, for_nest, budget)
+ .map(|indirect_owner| indirect_owner == target_parent)
}
pub fn check_nesting(