Skip to content

Commit

Permalink
Manually fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
bgw committed Sep 26, 2024
1 parent c7b31b0 commit a353f60
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 16 deletions.
3 changes: 1 addition & 2 deletions crates/next-api/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,7 @@ impl Project {

#[turbo_tasks::function]
pub fn output_fs(&self) -> Vc<DiskFileSystem> {
let disk_fs = DiskFileSystem::new("output".into(), self.project_path.clone(), vec![]);
disk_fs
DiskFileSystem::new("output".into(), self.project_path.clone(), vec![])
}

#[turbo_tasks::function]
Expand Down
5 changes: 2 additions & 3 deletions crates/next-core/src/next_edge/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ pub async fn wrap_edge_entry(
"MODULE".into() => entry
};

let module = asset_context
asset_context
.process(
Vc::upcast(virtual_source),
Value::new(ReferenceType::Internal(Vc::cell(inner_assets))),
)
.module();
module
.module()
}
5 changes: 2 additions & 3 deletions crates/next-core/src/next_image/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl StructuredImageModuleType {
module_asset_context: Vc<ModuleAssetContext>,
) -> Vc<Box<dyn Module>> {
let static_asset = StaticModuleAsset::new(source, Vc::upcast(module_asset_context));
let module = module_asset_context
module_asset_context
.process(
Vc::upcast(
StructuredImageFileSource {
Expand All @@ -54,8 +54,7 @@ impl StructuredImageModuleType {
"IMAGE".into() => Vc::upcast(static_asset)
)))),
)
.module();
module
.module()
}

#[turbo_tasks::function]
Expand Down
5 changes: 1 addition & 4 deletions crates/next-core/src/next_pages/page_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,7 @@ fn process_global_item(
module_context: Vc<Box<dyn AssetContext>>,
) -> Vc<Box<dyn Module>> {
let source = Vc::upcast(FileSource::new(item.project_path()));

let module = module_context.process(source, reference_type).module();

module
module_context.process(source, reference_type).module()
}

#[turbo_tasks::function]
Expand Down
6 changes: 2 additions & 4 deletions turbopack/crates/turbopack-cli/src/dev/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,11 @@ async fn source(
.cell(),
);
let main_source = Vc::upcast(main_source);
let source = Vc::upcast(PrefixedRouterContentSource::new(
Vc::upcast(PrefixedRouterContentSource::new(
Default::default(),
vec![("__turbopack__".into(), introspect)],
main_source,
));

source
))
}

pub fn register() {
Expand Down

0 comments on commit a353f60

Please sign in to comment.