FineFindus on Nostr: A few weeks ago, I introduced and fixed a bug where I accidentally checked if a ...
A few weeks ago, I introduced and fixed a bug where I accidentally checked if a string literal, instead of a vector, was empty, jokingly saying that I blamed Clippy for not having a lint against it. Following a suggestion from npub17zk46mps07fsynm4m0ne8lve4r39dvuufqrnleyh9ngmnpcm9kjsa2zwym (npub17zk…zwym), I created a feature request, and it's now actually implemented.
This means that Clippy will now warn you if you try to call `is_empty` on a string. https://rust-lang.github.io/rust-clippy/master/index.html#/const_is_empty
Clippy is really amazing.
#Rust #Rustlang
This means that Clippy will now warn you if you try to call `is_empty` on a string. https://rust-lang.github.io/rust-clippy/master/index.html#/const_is_empty
Clippy is really amazing.
#Rust #Rustlang