fix clippy
This commit is contained in:
1 parent
8b4e0b3e07
commit
8d1c17ba7d
6 files changed
+12
-14
No files matched your search
@@ -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>>
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user