瀏覽代碼

Fix clippy on box references

Jonathan Kelley 1 年之前
父節點
當前提交
32595ce161
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/core-macro/src/component.rs

+ 2 - 2
packages/core-macro/src/component.rs

@@ -199,8 +199,8 @@ impl ComponentBody {
 }
 
 struct DocField<'a> {
-    arg_name: &'a Box<Pat>,
-    arg_type: &'a Box<Type>,
+    arg_name: &'a Pat,
+    arg_type: &'a Type,
     deprecation: Option<crate::utils::DeprecatedAttribute>,
     input_arg_doc: String,
 }