@@ -354,9 +354,9 @@ impl Visit<VisitClientReferenceNode> for VisitClientReference {
354354 let referenced_modules = primary_referenced_modules ( * parent_module) . await ?;
355355
356356 let referenced_modules = referenced_modules. iter ( ) . map ( |module| async move {
357- let module = module. to_resolved ( ) . await ?;
358357 if let Some ( client_reference_module) =
359- ResolvedVc :: try_downcast_type :: < EcmascriptClientReferenceModule > ( module) . await ?
358+ ResolvedVc :: try_downcast_type :: < EcmascriptClientReferenceModule > ( * module)
359+ . await ?
360360 {
361361 return Ok ( VisitClientReferenceNode {
362362 state : node. state ,
@@ -385,7 +385,7 @@ impl Visit<VisitClientReferenceNode> for VisitClientReference {
385385 }
386386
387387 if let Some ( css_client_reference_asset) =
388- ResolvedVc :: try_downcast_type :: < CssModuleAsset > ( module) . await ?
388+ ResolvedVc :: try_downcast_type :: < CssModuleAsset > ( * module) . await ?
389389 {
390390 return Ok ( VisitClientReferenceNode {
391391 state : node. state ,
@@ -407,7 +407,7 @@ impl Visit<VisitClientReferenceNode> for VisitClientReference {
407407 }
408408
409409 if let Some ( server_component_asset) =
410- ResolvedVc :: try_downcast_type :: < NextServerComponentModule > ( module) . await ?
410+ ResolvedVc :: try_downcast_type :: < NextServerComponentModule > ( * module) . await ?
411411 {
412412 return Ok ( VisitClientReferenceNode {
413413 state : VisitClientReferenceNodeState :: InServerComponent {
@@ -425,7 +425,7 @@ impl Visit<VisitClientReferenceNode> for VisitClientReference {
425425 return Ok ( VisitClientReferenceNode {
426426 state : VisitClientReferenceNodeState :: InServerUtil ,
427427 ty : VisitClientReferenceNodeType :: ServerUtilEntry (
428- module,
428+ * module,
429429 module. ident ( ) . to_string ( ) . await ?,
430430 ) ,
431431 } ) ;
@@ -435,7 +435,7 @@ impl Visit<VisitClientReferenceNode> for VisitClientReference {
435435 Ok ( VisitClientReferenceNode {
436436 state : node. state ,
437437 ty : VisitClientReferenceNodeType :: Internal (
438- module,
438+ * module,
439439 module. ident ( ) . to_string ( ) . await ?,
440440 ) ,
441441 } )
0 commit comments