Skip to content

Commit

Permalink
refactor(turbo-tasks): Remove some format_description logic from me…
Browse files Browse the repository at this point in the history
…mory backend (#69472)

#69663 made improvements to the display logic, we don't need as much
logic here.
  • Loading branch information
bgw authored Sep 10, 2024
1 parent fa53822 commit 6d14461
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions turbopack/crates/turbo-tasks-memory/src/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,39 +598,7 @@ impl Task {
match ty {
TaskTypeForDescription::Root => format!("[{}] root", id),
TaskTypeForDescription::Once => format!("[{}] once", id),
TaskTypeForDescription::Persistent(ty) => match &***ty {
CachedTaskType::Native {
fn_type: native_fn,
this: _,
arg: _,
} => {
format!("[{}] {}", id, registry::get_function(*native_fn).name)
}
CachedTaskType::ResolveNative {
fn_type: native_fn,
this: _,
arg: _,
} => {
format!(
"[{}] [resolve] {}",
id,
registry::get_function(*native_fn).name
)
}
CachedTaskType::ResolveTrait {
trait_type,
method_name: fn_name,
this: _,
arg: _,
} => {
format!(
"[{}] [resolve trait] {} in trait {}",
id,
fn_name,
registry::get_trait(*trait_type).name
)
}
},
TaskTypeForDescription::Persistent(ty) => format!("[{id}] {ty}"),
}
}

Expand Down

0 comments on commit 6d14461

Please sign in to comment.