Browse Source

runtime post giza + giza_staging merge format fixes

ondratra 3 years ago
parent
commit
9902498439

+ 0 - 1
runtime-modules/common/src/working_group.rs

@@ -16,7 +16,6 @@ pub enum WorkingGroup {
         /// Forum working group: working_group::Instance1.
         Forum,
     */
-
     /// Storage working group: working_group::Instance2.
     Storage,
 

+ 5 - 1
runtime-modules/content/src/tests/mock.rs

@@ -647,7 +647,11 @@ pub fn create_channel_mock(
     let channel_id = Content::next_channel_id();
 
     assert_eq!(
-        Content::create_channel(Origin::signed(sender.clone()), actor.clone(), params.clone()),
+        Content::create_channel(
+            Origin::signed(sender.clone()),
+            actor.clone(),
+            params.clone()
+        ),
         result.clone(),
     );
 

+ 7 - 4
runtime-modules/content/src/types.rs

@@ -1,7 +1,6 @@
 use crate::*;
 use sp_std::borrow::ToOwned;
 
-
 /// Data structure in order to keep track of the migration
 #[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
 #[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)]
@@ -146,13 +145,17 @@ pub struct ChannelCreationParametersRecord<StorageAssets, AccountId, MemberId: O
     pub collaborators: BTreeSet<MemberId>,
 }
 
-pub type ChannelCreationParameters<T> =
-    ChannelCreationParametersRecord<StorageAssets<T>, <T as frame_system::Trait>::AccountId, <T as common::MembershipTypes>::MemberId>;
+pub type ChannelCreationParameters<T> = ChannelCreationParametersRecord<
+    StorageAssets<T>,
+    <T as frame_system::Trait>::AccountId,
+    <T as common::MembershipTypes>::MemberId,
+>;
 
 /// Information about channel being updated.
 #[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
 #[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)]
-pub struct ChannelUpdateParametersRecord<StorageAssets, AccountId, DataObjectId: Ord, MemberId: Ord> {
+pub struct ChannelUpdateParametersRecord<StorageAssets, AccountId, DataObjectId: Ord, MemberId: Ord>
+{
     /// Asset collection for the channel, referenced by metadata
     pub assets_to_upload: Option<StorageAssets>,
     /// If set, metadata update for the channel.