2022-08-29 18:39:25 +00:00
|
|
|
error: iterating on a map's keys
|
2022-09-15 04:16:01 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:15:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.iter().map(|(key, _)| key).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.keys()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::iter-kv-map` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: iterating on a map's values
|
2022-09-15 04:16:01 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:16:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.iter().map(|(_, value)| value).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values()`
|
|
|
|
|
|
|
|
error: iterating on a map's values
|
2022-09-15 04:16:01 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:17:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.iter().map(|(_, v)| v + 2).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values().map(|v| v + 2)`
|
|
|
|
|
|
|
|
error: iterating on a map's keys
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:19:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.clone().into_iter().map(|(key, _)| key).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_keys()`
|
|
|
|
|
|
|
|
error: iterating on a map's keys
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:20:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.clone().into_iter().map(|(key, _)| key + 2).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_keys().map(|key| key + 2)`
|
|
|
|
|
|
|
|
error: iterating on a map's values
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:22:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.clone().into_iter().map(|(_, val)| val).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_values()`
|
|
|
|
|
|
|
|
error: iterating on a map's values
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:23:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.clone().into_iter().map(|(_, val)| val + 2).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_values().map(|val| val + 2)`
|
|
|
|
|
|
|
|
error: iterating on a map's values
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:25:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.clone().iter().map(|(_, val)| val).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().values()`
|
|
|
|
|
|
|
|
error: iterating on a map's keys
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:26:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
2022-09-15 04:16:01 +00:00
|
|
|
LL | let _ = map.iter().map(|(key, _)| key).filter(|x| *x % 2 == 0).count();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.keys()`
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
error: iterating on a map's keys
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:36:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
2022-09-15 04:16:01 +00:00
|
|
|
LL | let _ = map.iter().map(|(key, _value)| key * 9).count();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.keys().map(|key| key * 9)`
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
error: iterating on a map's values
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:37:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
2022-09-15 04:16:01 +00:00
|
|
|
LL | let _ = map.iter().map(|(_key, value)| value * 17).count();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values().map(|value| value * 17)`
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
error: iterating on a map's keys
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:41:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.iter().map(|(key, _)| key).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.keys()`
|
|
|
|
|
|
|
|
error: iterating on a map's values
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:42:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.iter().map(|(_, value)| value).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values()`
|
|
|
|
|
|
|
|
error: iterating on a map's values
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:43:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.iter().map(|(_, v)| v + 2).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values().map(|v| v + 2)`
|
|
|
|
|
|
|
|
error: iterating on a map's keys
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:45:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.clone().into_iter().map(|(key, _)| key).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_keys()`
|
|
|
|
|
|
|
|
error: iterating on a map's keys
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:46:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.clone().into_iter().map(|(key, _)| key + 2).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_keys().map(|key| key + 2)`
|
|
|
|
|
|
|
|
error: iterating on a map's values
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:48:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.clone().into_iter().map(|(_, val)| val).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_values()`
|
|
|
|
|
|
|
|
error: iterating on a map's values
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:49:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.clone().into_iter().map(|(_, val)| val + 2).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_values().map(|val| val + 2)`
|
|
|
|
|
|
|
|
error: iterating on a map's values
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:51:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
|
LL | let _ = map.clone().iter().map(|(_, val)| val).collect::<Vec<_>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().values()`
|
|
|
|
|
|
|
|
error: iterating on a map's keys
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:52:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
2022-09-15 04:16:01 +00:00
|
|
|
LL | let _ = map.iter().map(|(key, _)| key).filter(|x| *x % 2 == 0).count();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.keys()`
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
error: iterating on a map's keys
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:62:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
2022-09-15 04:16:01 +00:00
|
|
|
LL | let _ = map.iter().map(|(key, _value)| key * 9).count();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.keys().map(|key| key * 9)`
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
|
|
error: iterating on a map's values
|
2022-09-16 08:29:51 +00:00
|
|
|
--> $DIR/iter_kv_map.rs:63:13
|
2022-08-29 18:39:25 +00:00
|
|
|
|
|
2022-09-15 04:16:01 +00:00
|
|
|
LL | let _ = map.iter().map(|(_key, value)| value * 17).count();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values().map(|value| value * 17)`
|
2022-08-29 18:39:25 +00:00
|
|
|
|
2022-09-16 08:29:51 +00:00
|
|
|
error: aborting due to 22 previous errors
|
2022-08-29 18:39:25 +00:00
|
|
|
|