Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge promotable implementations #489

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stepancheg
Copy link
Contributor

Replace copy-paste promotable_even_clone/protomotable_odd_clone
and promotable_even_drop/protomotable_odd_drop into promotable_clone
and protomotable_drop functions parameterized by ProtomotableEvenness.

Diffstat is:

 src/bytes.rs | 71 ++++++++++++++++++++++++++++++++++++-----------------------------------
 1 file changed, 36 insertions(+), 35 deletions(-)

but it should be easier to understand this way.

Replace copy-paste `promotable_even_clone`/`protomotable_odd_clone`
and `promotable_even_drop`/`protomotable_odd_drop` into `promotable_clone`
and `protomotable_drop` functions parameterized by `ProtomotableEvenness`.

Diffstat is:

```
 src/bytes.rs | 71 ++++++++++++++++++++++++++++++++++++-----------------------------------
 1 file changed, 36 insertions(+), 35 deletions(-)
```

but it should be easier to understand this way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant