Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jroesch committed Aug 21, 2021
1 parent bea098b commit 5bb30d5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rust/tvm-rt/src/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ impl Function {
/// Calls the function that created from `Builder`.
pub fn invoke<'a>(&self, arg_buf: Vec<ArgValue<'a>>) -> Result<RetValue> {
let num_args = arg_buf.len();
let (mut values, mut type_codes): (Vec<ffi::TVMValue>, Vec<ffi::TVMArgTypeCode>) = arg_buf
.into_iter()
.map(|arg| arg.to_tvm_value())
.unzip();
let (mut values, mut type_codes): (Vec<ffi::TVMValue>, Vec<ffi::TVMArgTypeCode>) =
arg_buf.into_iter().map(|arg| arg.to_tvm_value()).unzip();

let mut ret_val = ffi::TVMValue { v_int64: 0 };
let mut ret_type_code = 0i32;
Expand Down

0 comments on commit 5bb30d5

Please sign in to comment.