Browse Source

Fix clippy on box references

Jonathan Kelley 1 năm trước cách đây
mục cha
commit
32595ce161
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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,
 }