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

fix: assertion should not fail if input was empty string #36

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

a10y
Copy link
Contributor

@a10y a10y commented Sep 17, 2024

The lower-level methods support empty, but this assertion on the wrapper was causing failures when empty plaintext provided

@a10y a10y requested a review from danking September 17, 2024 20:17
@a10y a10y force-pushed the aduffy/handle-empty-compress branch from 08c8395 to 0e0b518 Compare September 17, 2024 20:17
Copy link
Member

@danking danking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No bytes is the best amount of bytes.

@danking danking enabled auto-merge (squash) September 17, 2024 20:19
@a10y a10y changed the title Assertion should allow empty compression fix: assertion should not fail if input was empty string Sep 17, 2024
@danking danking merged commit 3b9e804 into develop Sep 17, 2024
3 checks passed
@danking danking deleted the aduffy/handle-empty-compress branch September 17, 2024 20:26
@github-actions github-actions bot mentioned this pull request Sep 17, 2024
a10y pushed a commit that referenced this pull request Sep 17, 2024
## 🤖 New release
* `fsst-rs`: 0.4.1 -> 0.4.2 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## [0.4.2](v0.4.1...v0.4.2) -
2024-09-17

### Fixed

- search for first non-empty chunk
([#35](#35))
- docs first3 ([#33](#33))

### Other

- Assertion should allow empty compression
([#36](#36))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants