Skip to content

Commit ac2a13f

Browse files
committed
Replacement of .into() by .from() for improvement clarity at the request of @adamcrume
1 parent 7c87c98 commit ac2a13f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saved_model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ impl SavedModelSaver {
496496
let mut meta_graph = self.meta_graph.clone();
497497
let graph_bytes = graph.graph_def()?;
498498
let graph_def = protobuf::Message::parse_from_bytes(&graph_bytes).map_err(|e| {
499-
<Status as Into<SaveModelError>>::into(Status::new_set_lossy(
499+
SaveModelError::from(Status::new_set_lossy(
500500
Code::InvalidArgument,
501501
&format!("Unable to parse graph definition: {}", e),
502502
))

0 commit comments

Comments
 (0)