Remove the trim-in-place dependency
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.
合并状态:已合并 合并于 2025-05-19 关闭于 2025-05-19 0 条评论