Skip to content

Commit 5ff07ca

Browse files
committed
resolve clippy issues
1 parent 5ed1340 commit 5ff07ca

File tree

1 file changed

+2
-2
lines changed
  • turbopack/crates/turbo-tasks-macros/src

1 file changed

+2
-2
lines changed

turbopack/crates/turbo-tasks-macros/src/func.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ impl TurboFn<'_> {
335335
return (arg.clone(), None);
336336
}
337337
let (FnArg::Receiver(Receiver { ty, .. }) | FnArg::Typed(PatType { ty, .. })) = arg;
338-
let Cow::Owned(expanded_ty) = expand_task_input_type(&ty) else {
338+
let Cow::Owned(expanded_ty) = expand_task_input_type(ty) else {
339339
// common-case: skip if no type conversion is needed
340340
return (arg.clone(), None);
341341
};
@@ -421,7 +421,7 @@ impl TurboFn<'_> {
421421

422422
// convert an argument of type `FromTaskInput<T>::TaskInput` into `T`.
423423
// essentially, replace any instances of `Vc` with `ResolvedVc`.
424-
let pat = (&*pat_type.pat).clone();
424+
let pat = (*pat_type.pat).clone();
425425
let transform_stmt = transform_from_task_input(arg_id, pat);
426426

427427
(arg, Some(transform_stmt))

0 commit comments

Comments
 (0)