We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
str::bytes().count()
str::len()
It checks for str::bytes().count() and suggests replacing it with str::len() that does the same but shorter and possibly more performant.
Extra: can something like this be done for https://doc.rust-lang.org/std/io/trait.Read.html#method.bytes too?
bytes_count_to_len
complexity
No response
fn main() { "hello".bytes().count(); }
Could be written as:
fn main() { "hello".len(); }