1 error: using long and hard to read `.bytes().count()`
2 --> $DIR/bytes_count_to_len.rs:8:13
4 LL | let _ = String::from("foo").bytes().count();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling `.len()` instead: `String::from("foo").len()`
7 = note: `-D clippy::bytes-count-to-len` implied by `-D warnings`
9 error: using long and hard to read `.bytes().count()`
10 --> $DIR/bytes_count_to_len.rs:11:13
12 LL | let _ = s1.bytes().count();
13 | ^^^^^^^^^^^^^^^^^^ help: consider calling `.len()` instead: `s1.len()`
15 error: using long and hard to read `.bytes().count()`
16 --> $DIR/bytes_count_to_len.rs:14:13
18 LL | let _ = "foo".bytes().count();
19 | ^^^^^^^^^^^^^^^^^^^^^ help: consider calling `.len()` instead: `"foo".len()`
21 error: using long and hard to read `.bytes().count()`
22 --> $DIR/bytes_count_to_len.rs:17:13
24 LL | let _ = s2.bytes().count();
25 | ^^^^^^^^^^^^^^^^^^ help: consider calling `.len()` instead: `s2.len()`
27 error: aborting due to 4 previous errors