Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kykosic committed Jun 27, 2020
1 parent 71dbd94 commit 37741e1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1499,12 +1499,13 @@ impl Library {
*heap_buf = stack_buf;
Buffer::<u8>::from_c(heap_buf, false)
};
let op_list: protos::op_def::OpList = protobuf::parse_from_bytes(&buf).map_err(|e| {
Status::new_set_lossy(
Code::InvalidArgument,
&format!("Invalid serialized OpList: {}", e),
)
})?;
let op_list: protos::op_def::OpList =
protobuf::parse_from_bytes(&buf).map_err(|e| {
Status::new_set_lossy(
Code::InvalidArgument,
&format!("Invalid serialized OpList: {}", e),
)
})?;
Ok(Library { inner, op_list })
}
}
Expand Down

0 comments on commit 37741e1

Please sign in to comment.