Skip to content

Commit

Permalink
Update rust/tvm-sys/src/datatype.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Hynes <nhynes@berkeley.edu>
  • Loading branch information
jroesch and nhynes authored May 8, 2020
1 parent d8a1640 commit 6a472e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/tvm-sys/src/datatype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl FromStr for DataType {
}

let mut type_lanes = type_str.split('x');
let typ = type_lanes.next().expect("Missing dtype");
let typ = type_lanes.next().ok_or(ParseTvmError::MissingDataType)?;
let lanes = type_lanes
.next()
.map(|l| <u16>::from_str_radix(l, 10))
Expand Down

0 comments on commit 6a472e1

Please sign in to comment.