1
0
Эх сурвалжийг харах

actually derive the copy trait for eval

Evan Almloff 1 жил өмнө
parent
commit
308226996c

+ 1 - 0
packages/html/src/eval.rs

@@ -59,6 +59,7 @@ pub fn eval(script: &str) -> Result<UseEval, EvalError> {
 }
 }
 
 
 /// A wrapper around the target platform's evaluator.
 /// A wrapper around the target platform's evaluator.
+#[derive(Clone, Copy)]
 pub struct UseEval {
 pub struct UseEval {
     evaluator: GenerationalBox<Box<dyn Evaluator>>,
     evaluator: GenerationalBox<Box<dyn Evaluator>>,
 }
 }