Browse Source

Apply clippy fix

iorveth 4 years ago
parent
commit
703da5200b

+ 1 - 1
node/src/chain_spec/content_config.rs

@@ -137,7 +137,7 @@ pub fn data_directory_config_from_json(data_file: &Path) -> DataDirectoryConfig
         quotas: content
             .data_objects
             .iter()
-            .map(|object| (object.storage_object_owner.clone(), object.quota.clone()))
+            .map(|object| (object.storage_object_owner.clone(), object.quota))
             .collect(),
         known_content_ids: content
             .data_objects

+ 2 - 0
runtime-modules/storage/src/data_object_type_registry.rs

@@ -97,12 +97,14 @@ decl_event! {
     {
         /// Emits on the data object type registration.
         /// Params:
+        /// - DataObjectType
         /// - Id of the new data object type.
         DataObjectTypeRegistered(DataObjectType, DataObjectTypeId),
 
         /// Emits on the data object type update.
         /// Params:
         /// - Id of the updated data object type.
+        /// - DataObjectType
         DataObjectTypeUpdated(DataObjectTypeId, DataObjectType),
     }
 }