Skip to content

Commit

Permalink
Removed unused exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichu Acuña committed Aug 1, 2024
1 parent 7db9acd commit b61c5d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/turbopack-browser/src/chunking_context.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use anyhow::{bail, Context, Result};
use tracing::Instrument;
use turbo_tasks::{debug::ValueDebug, RcStr, Value, ValueToString, Vc};
use turbo_tasks::{RcStr, Value, ValueToString, Vc};
use turbo_tasks_fs::FileSystemPath;
use turbopack_core::{
chunk::{
Expand Down
3 changes: 1 addition & 2 deletions crates/turbopack-core/src/chunk/chunking_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ pub trait ChunkingContext {
self: Vc<Self>,
ident: Vc<AssetIdent>,
) -> Result<Vc<ModuleId>> {
let global_information = self.global_information().await?;
if let Some(global_information) = &*global_information {
if let Some(global_information) = &*self.global_information().await? {
return Ok(global_information.get_module_id(ident).await?);

Check failure on line 127 in crates/turbopack-core/src/chunk/chunking_context.rs

View workflow job for this annotation

GitHub Actions / Turbopack rust clippy

question mark operator is useless here
}
Ok(ModuleId::String(ident.to_string().await?.clone_value()).cell())
Expand Down
2 changes: 1 addition & 1 deletion crates/turbopack-core/src/chunk/global_information.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl GlobalInformation {
let ident = asset_ident.await?;
let hashed_module_id = self.module_id_map.get(&ident);
if let Some(hashed_module_id) = hashed_module_id {
dbg!("Hashed module ID found");
dbg!("Hashed module ID found", &ident_str, hashed_module_id);
return Ok(hashed_module_id.clone().cell());
}
dbg!("Hashed module ID not found", &ident_str);
Expand Down

0 comments on commit b61c5d8

Please sign in to comment.