Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Oct 25, 2023
1 parent 84251f1 commit ab58713
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/next-swc/crates/next-api/src/server_actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use turbopack_binding::{
ecmascript::{
chunk::{EcmascriptChunkPlaceable, EcmascriptChunkingContext},
parse::ParseResult,
EcmascriptModuleAsset, EcmascriptModuleAssetType,
EcmascriptModuleAsset,
},
},
};
Expand Down Expand Up @@ -267,10 +267,12 @@ async fn parse_actions_filter_map(
})
}

type LayerModuleActionMap = IndexMap<(ActionLayer, Vc<Box<dyn Module>>), Vc<ActionMap>>;

/// A mapping of every module which exports a Server Action, with the hashed id
/// and exported name of each found action.
#[turbo_tasks::value(transparent)]
struct ModuleActionMap(IndexMap<(ActionLayer, Vc<Box<dyn Module>>), Vc<ActionMap>>);
struct ModuleActionMap(LayerModuleActionMap);

#[turbo_tasks::value_impl]
impl ModuleActionMap {
Expand Down

0 comments on commit ab58713

Please sign in to comment.