Eval should never return an error

Only awaiting eval should error.
Eval should always be available, even if using its methods returns errors.
This commit is contained in:
Jonathan Kelley committed 2024-02-14 15:13:15 -08:00
1 parent 1145ed7534
commit cbadea022a
9 files changed
+65 -44

No files matched your search

+2 -2
View File
@@ -18,8 +18,8 @@ pub struct DesktopEvalProvider {
}
impl EvalProvider for DesktopEvalProvider {
fn new_evaluator(&self, js: String) -> Result<GenerationalBox<Box<dyn Evaluator>>, EvalError> {
Ok(DesktopEvaluator::create(self.query.clone(), js))
fn new_evaluator(&self, js: String) -> GenerationalBox<Box<dyn Evaluator>> {
DesktopEvaluator::create(self.query.clone(), js)
}
}