浏览代码

Froum: fix clippy warnings

iorveth 3 年之前
父节点
当前提交
fff50cb4ff
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      runtime-modules/forum/src/benchmarking.rs
  2. 1 1
      runtime-modules/forum/src/lib.rs

+ 1 - 1
runtime-modules/forum/src/benchmarking.rs

@@ -1009,7 +1009,7 @@ benchmarks! {
             caller_id.clone(), forum_user_id.saturated_into(), category_id,
             vec![1u8].repeat(MAX_BYTES as usize), vec![1u8].repeat(MAX_BYTES as usize), None
         );
-        let mut thread = Module::<T>::thread_by_id(category_id, thread_id);
+        let thread = Module::<T>::thread_by_id(category_id, thread_id);
 
         let new_metadata = vec![0u8].repeat(j as usize);
 

+ 1 - 1
runtime-modules/forum/src/lib.rs

@@ -1002,7 +1002,7 @@ decl_module! {
 
             let account_id = ensure_signed(origin)?;
 
-            let thread = Self::ensure_can_edit_thread_metadata(account_id, &category_id, &thread_id, &forum_user_id)?;
+            Self::ensure_can_edit_thread_metadata(account_id, &category_id, &thread_id, &forum_user_id)?;
 
             //
             // == MUTATION SAFE ==