Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jroesch committed Aug 23, 2021
1 parent 5a90e2f commit b6ecf60
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 b6ecf60

Please sign in to comment.