Skip to content

Commit 5b8eb27

Browse files
Appease clippy
1 parent fcf81b2 commit 5b8eb27

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

onnxruntime/src/error.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,9 @@ impl From<OrtStatusWrapper> for std::result::Result<(), OrtApiError> {
167167
match char_p_to_string(raw) {
168168
Ok(msg) => Err(OrtApiError::Msg(msg)),
169169
Err(err) => match err {
170-
OrtError::StringConversion(e) => match e {
171-
OrtApiError::IntoStringError(e) => Err(OrtApiError::IntoStringError(e)),
172-
_ => unreachable!(),
173-
},
170+
OrtError::StringConversion(OrtApiError::IntoStringError(e)) => {
171+
Err(OrtApiError::IntoStringError(e))
172+
}
174173
_ => unreachable!(),
175174
},
176175
}

0 commit comments

Comments
 (0)