Skip to content

Remove the trim-in-place dependency #143

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

Merged
merged 1 commit into from
May 19, 2025

Conversation

Ortham
Copy link
Contributor

@Ortham Ortham commented May 18, 2025

There's doesn't seem to be a good reason to use a library that uses unsafe code (though it seems sound to me) to accomplish something that can be done in a few calls to safe standard library functions.

I compared the optimised assembly generated by both approaches in the Rust Playground and the replacement is actually a bit simpler.

There's doesn't seem to be a good reason to use a library that uses unsafe code (though it seems sound to me) to accomplish something that can be done in a couple of lines of safe code.
@zonyitoo zonyitoo merged commit 68ae427 into zonyitoo:master May 19, 2025
6 checks passed
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