mirror of
https://github.com/containers/bootc.git
synced 2026-02-05 15:45:53 +01:00
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. Signed-off-by: Colin Walters <walters@verbum.org>
5 lines
178 B
TOML
5 lines
178 B
TOML
disallowed-methods = [
|
|
# https://github.com/rust-lang/rust-clippy/issues/13434#issuecomment-2484292914
|
|
{ path = "str::len", reason = "use <str>.as_bytes().len() instead" }
|
|
]
|