Browse Source

Content: fix clippy warnings

iorveth 4 years ago
parent
commit
cb3a1933a3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      runtime-modules/content/src/lib.rs

+ 2 - 2
runtime-modules/content/src/lib.rs

@@ -1074,7 +1074,7 @@ decl_module! {
                 is_featured: false,
             };
 
-            VideoById::<T>::insert(video_id, video.clone());
+            VideoById::<T>::insert(video_id, video);
 
             // Only increment next video id if adding content was successful
             NextVideoId::<T>::mutate(|id| *id += T::VideoId::one());
@@ -1259,7 +1259,7 @@ decl_module! {
             NextVideoCategoryId::<T>::mutate(|id| *id += T::VideoCategoryId::one());
 
             let category = VideoCategory {};
-            VideoCategoryById::<T>::insert(category_id, category.clone());
+            VideoCategoryById::<T>::insert(category_id, category);
 
             Self::deposit_event(RawEvent::VideoCategoryCreated(actor, category_id, params));
         }