소스 검색

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,
 }