containers / bootc

Boot and upgrade via container images
https://containers.github.io/bootc/
Apache License 2.0
769 stars 83 forks source link

clippy: Deny `str::len` #914

Closed cgwalters closed 2 days ago

cgwalters commented 3 days ago

When I was working on some column printing code with Unicode I got bit by using str::len...and digging in I found that clippy actually just merged a lint to go the other way; more in the link in the code.

Turning on a lint showed one place that should have been using chars().count() and one that should have been validating ASCII. Fix those.