fix clippy

This commit is contained in:
Evan Almloff committed 2023-08-09 11:10:41 -07:00
1 parent 8b4e0b3e07
commit 8d1c17ba7d
6 files changed
+12 -14

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ pub fn use_eval(cx: &ScopeState) -> &EvalCreator {
Rc::new(move |script: &str| {
eval_provider
.new_evaluator(script.to_string())
.map(|evaluator| UseEval::new(evaluator))
.map(UseEval::new)
}) as Rc<dyn Fn(&str) -> Result<UseEval, EvalError>>
})
}