rust-cpython icon indicating copy to clipboard operation
rust-cpython copied to clipboard

Fix a clippy warning

Open zzl0 opened this issue 11 months ago • 1 comments

This diff fixes the clippy warning about manual_strip: https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip

Screenshot 2025-02-12 at 10 36 06 AM

zzl0 avatar Feb 12 '25 15:02 zzl0

String::strip_prefix was added in 1.45 but our MSRV is 1.41. 1.45 is nearly 5 years old at this point, so perhaps we could consider bumping the MSRV. I think the reason for holding back was the version of Rust in Debian stable, so will need to check that.

markbt avatar Mar 06 '25 16:03 markbt