Skip to content

Commit

Permalink
Remove a stray leading borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 19, 2020
1 parent fa0e2b2 commit 5b68a72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/api/src/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ impl Func {
pub fn new(
store: &Store,
ty: FuncType,
func: impl Fn(&Caller<'_>, &[Val], &mut [Val]) -> Result<(), Trap> + 'static,
func: impl Fn(Caller<'_>, &[Val], &mut [Val]) -> Result<(), Trap> + 'static,
) -> Self {
let store_clone = store.clone();
let ty_clone = ty.clone();
Expand All @@ -244,7 +244,7 @@ impl Func {
}
let mut returns = vec![Val::null(); ty_clone.results().len()];
func(
&Caller {
Caller {
store: &store_clone,
caller_vmctx,
},
Expand Down

0 comments on commit 5b68a72

Please sign in to comment.