CQCL / hugr

Hierarchical Unified Graph Representation
https://crates.io/crates/hugr
Apache License 2.0
15 stars 4 forks source link

refactor!: remove `Value::Tuple` #1255

Closed ss2165 closed 2 days ago

ss2165 commented 3 days ago

Closes #1206

uses new serialisation intermediary to keep serialized Tuple backwards compatibility

Snaps updated because a tuple-like sum always uses tuple display now

BREAKING CHANGE: Value::Tuple removed. Value::Sum now holds a standalone struct Sum

codecov[bot] commented 3 days ago

Codecov Report

Attention: Patch coverage is 97.12230% with 4 lines in your changes missing coverage. Please review.

Project coverage is 87.05%. Comparing base (8f08b8c) to head (689ed6a). Report is 1 commits behind head on main.

Files Patch % Lines
hugr-core/src/ops/constant.rs 97.67% 3 Missing :warning:
hugr-core/src/types.rs 88.88% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1255 +/- ## ========================================== + Coverage 86.98% 87.05% +0.06% ========================================== Files 102 102 Lines 19108 19223 +115 Branches 17015 17130 +115 ========================================== + Hits 16622 16734 +112 - Misses 1709 1713 +4 + Partials 777 776 -1 ``` | [Flag](https://app.codecov.io/gh/CQCL/hugr/pull/1255/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CQCL) | Coverage Δ | | |---|---|---| | [rust](https://app.codecov.io/gh/CQCL/hugr/pull/1255/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CQCL) | `86.54% <97.12%> (+0.07%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CQCL#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.