Skip to content

Commit 7257820

Browse files
committed
Remove a manual TaskInput implementation
1 parent b443d24 commit 7257820

File tree

1 file changed

+2
-8
lines changed
  • turbopack/crates/turbopack-core/src/resolve

1 file changed

+2
-8
lines changed

turbopack/crates/turbopack-core/src/resolve/mod.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -482,19 +482,13 @@ pub enum ResolveResultItem {
482482
/// A primary factor is the actual request string, but there are
483483
/// other factors like exports conditions that can affect resolting and become
484484
/// part of the key (assuming the condition is unknown at compile time)
485-
#[derive(Clone, Debug, Default, Hash)]
486-
#[turbo_tasks::value(serialization = "auto_for_input")]
485+
#[derive(Clone, Debug, Default, Hash, TaskInput)]
486+
#[turbo_tasks::value]
487487
pub struct RequestKey {
488488
pub request: Option<RcStr>,
489489
pub conditions: BTreeMap<String, bool>,
490490
}
491491

492-
impl TaskInput for RequestKey {
493-
fn is_transient(&self) -> bool {
494-
false
495-
}
496-
}
497-
498492
impl Display for RequestKey {
499493
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
500494
if let Some(request) = &self.request {

0 commit comments

Comments
 (0)