Browse Source

Fix clippy on box references

Jonathan Kelley 1 year ago
parent
commit
32595ce161
1 changed files with 2 additions and 2 deletions
  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,
 }