2019-01-02 06:42:04 +00:00
|
|
|
error: you seem to want to iterate on a map's values
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/for_kv_map.rs:9:19
|
2019-01-02 06:42:04 +00:00
|
|
|
|
|
|
|
|
LL | for (_, v) in &m {
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::for-kv-map` implied by `-D warnings`
|
|
|
|
help: use the corresponding method
|
|
|
|
|
|
|
|
|
LL | for v in m.values() {
|
2021-08-11 14:21:33 +00:00
|
|
|
| ~ ~~~~~~~~~~
|
2019-01-02 06:42:04 +00:00
|
|
|
|
|
|
|
error: you seem to want to iterate on a map's values
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/for_kv_map.rs:14:19
|
2019-01-02 06:42:04 +00:00
|
|
|
|
|
|
|
|
LL | for (_, v) in &*m {
|
|
|
|
| ^^^
|
2019-10-26 19:53:42 +00:00
|
|
|
|
|
2019-01-02 06:42:04 +00:00
|
|
|
help: use the corresponding method
|
|
|
|
|
|
|
|
|
LL | for v in (*m).values() {
|
2021-08-11 14:21:33 +00:00
|
|
|
| ~ ~~~~~~~~~~~~~
|
2019-01-02 06:42:04 +00:00
|
|
|
|
|
|
|
error: you seem to want to iterate on a map's values
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/for_kv_map.rs:22:19
|
2019-01-02 06:42:04 +00:00
|
|
|
|
|
|
|
|
LL | for (_, v) in &mut m {
|
|
|
|
| ^^^^^^
|
2019-10-26 19:53:42 +00:00
|
|
|
|
|
2019-01-02 06:42:04 +00:00
|
|
|
help: use the corresponding method
|
|
|
|
|
|
|
|
|
LL | for v in m.values_mut() {
|
2021-08-11 14:21:33 +00:00
|
|
|
| ~ ~~~~~~~~~~~~~~
|
2019-01-02 06:42:04 +00:00
|
|
|
|
|
|
|
error: you seem to want to iterate on a map's values
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/for_kv_map.rs:27:19
|
2019-01-02 06:42:04 +00:00
|
|
|
|
|
|
|
|
LL | for (_, v) in &mut *m {
|
|
|
|
| ^^^^^^^
|
2019-10-26 19:53:42 +00:00
|
|
|
|
|
2019-01-02 06:42:04 +00:00
|
|
|
help: use the corresponding method
|
|
|
|
|
|
|
|
|
LL | for v in (*m).values_mut() {
|
2021-08-11 14:21:33 +00:00
|
|
|
| ~ ~~~~~~~~~~~~~~~~~
|
2019-01-02 06:42:04 +00:00
|
|
|
|
|
|
|
error: you seem to want to iterate on a map's keys
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/for_kv_map.rs:33:24
|
2019-01-02 06:42:04 +00:00
|
|
|
|
|
|
|
|
LL | for (k, _value) in rm {
|
|
|
|
| ^^
|
2019-10-26 19:53:42 +00:00
|
|
|
|
|
2019-01-02 06:42:04 +00:00
|
|
|
help: use the corresponding method
|
|
|
|
|
|
|
|
|
LL | for k in rm.keys() {
|
2021-08-11 14:21:33 +00:00
|
|
|
| ~ ~~~~~~~~~
|
2019-01-02 06:42:04 +00:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|