Closed yhx-12243 closed 5 months ago
I'm surprised clippy didn't see this, but maybe it only lints if there's a manual len()
too.
https://rust-lang.github.io/rust-clippy/master/#/manual_strip
Thanks!
I'm surprised clippy didn't see this, but maybe it only lints if there's a manual
len()
too. https://rust-lang.github.io/rust-clippy/master/#/manual_stripThanks!
Yes I've already proposed at rust-lang/rust-clippy#12863. 👀
strip_prefix
is stable since 1.45.0, which is less than the MSRV (1.60) of this crate, and it generally generates better code.