Skip to content

Commit 04a83cb

Browse files
committed
Tensor::new_from_instance does not need to return a Result
1 parent 62ae613 commit 04a83cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/openvino/src/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl InferRequest {
3838
cstr!(name),
3939
std::ptr::addr_of_mut!(tensor)
4040
))?;
41-
Ok(Tensor::new_from_instance(tensor).unwrap())
41+
Ok(Tensor::new_from_instance(tensor))
4242
}
4343

4444
/// Execute the inference request.

0 commit comments

Comments
 (0)