Skip to content

Commit a40b5dd

Browse files
committed
Remove clone from Effect
1 parent a071066 commit a40b5dd

File tree

2 files changed

+838
-800
lines changed
  • turbopack/crates/turbopack-ecmascript/src

2 files changed

+838
-800
lines changed

turbopack/crates/turbopack-ecmascript/src/analyzer/graph.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use crate::{
3535
utils::{AstPathRange, unparen},
3636
};
3737

38-
#[derive(Debug, Clone)]
38+
#[derive(Debug)]
3939
pub struct EffectsBlock {
4040
pub effects: Vec<Effect>,
4141
pub range: AstPathRange,
@@ -47,7 +47,7 @@ impl EffectsBlock {
4747
}
4848
}
4949

50-
#[derive(Debug, Clone)]
50+
#[derive(Debug)]
5151
pub enum ConditionalKind {
5252
/// The blocks of an `if` statement without an `else` block.
5353
If { then: Box<EffectsBlock> },
@@ -117,7 +117,7 @@ impl ConditionalKind {
117117
}
118118
}
119119

120-
#[derive(Debug, Clone)]
120+
#[derive(Debug)]
121121
pub enum EffectArg {
122122
Value(JsValue),
123123
Closure(JsValue, Box<EffectsBlock>),
@@ -140,7 +140,7 @@ impl EffectArg {
140140
}
141141
}
142142

143-
#[derive(Debug, Clone)]
143+
#[derive(Debug)]
144144
pub enum Effect {
145145
/// Some condition which affects which effects might be executed. If the
146146
/// condition evaluates to some compile-time constant, we can use that

0 commit comments

Comments
 (0)