Skip to content

Commit 106183a

Browse files
committed
Fix clippy warnings
1 parent 6719ab4 commit 106183a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

quiver-web/src/repl_web.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,13 @@ impl CallbackHandle {
111111
}
112112
}
113113

114+
type EventLoopClosure = Rc<RefCell<Option<Closure<dyn FnMut()>>>>;
115+
114116
#[wasm_bindgen(skip_typescript)]
115117
pub struct Repl {
116118
repl: Rc<RefCell<quiver_environment::Repl>>,
117119
running: Rc<RefCell<bool>>,
118-
event_loop_closure: Rc<RefCell<Option<Closure<dyn FnMut()>>>>,
120+
event_loop_closure: EventLoopClosure,
119121
pending_callbacks: Rc<RefCell<HashMap<u64, CallbackHandle>>>,
120122
}
121123

@@ -405,7 +407,7 @@ impl Repl {
405407
RequestResult::Result(Ok((value, heap))) => {
406408
callback.invoke(JsResult::ok(Some(JsEvaluationResult {
407409
value: value.into(),
408-
heap: heap,
410+
heap,
409411
})));
410412
}
411413
RequestResult::Result(Err(e)) => {

0 commit comments

Comments
 (0)