Skip to content

Commit 7c87c98

Browse files
committed
Fix fmt failures.
1 parent 34adf49 commit 7c87c98

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/saved_model.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,11 +495,12 @@ impl SavedModelSaver {
495495
) -> std::result::Result<(), SaveModelError> {
496496
let mut meta_graph = self.meta_graph.clone();
497497
let graph_bytes = graph.graph_def()?;
498-
let graph_def= protobuf::Message::parse_from_bytes(&graph_bytes)
499-
.map_err(|e| <Status as Into<SaveModelError>>::into(Status::new_set_lossy(
498+
let graph_def = protobuf::Message::parse_from_bytes(&graph_bytes).map_err(|e| {
499+
<Status as Into<SaveModelError>>::into(Status::new_set_lossy(
500500
Code::InvalidArgument,
501501
&format!("Unable to parse graph definition: {}", e),
502-
)))?;
502+
))
503+
})?;
503504
meta_graph.set_graph_def(graph_def);
504505
let mut saved_model = protos::saved_model::SavedModel::new();
505506
saved_model.set_saved_model_schema_version(1);

0 commit comments

Comments
 (0)