Commit ee45e8d
committed
fix more causes of clippy warnings
Clippy linting had more errors:
error: iterating on a map's values
Error: --> crates/macros/src/module.rs:56:36
|
56 | let registered_classes_impls = state
| ____________________________________^
57 | | .classes
58 | | .iter()
59 | | .map(|(_, class)| generate_registered_class_impl(class))
| |________________________________________________________________^
|
= note: `-D clippy::iter-kv-map` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map
help: try
|
56 ~ let registered_classes_impls = state
57 + .classes.values().map(|class| generate_registered_class_impl(class))
|
error: iterating on a map's values
Error: --> crates/macros/src/module.rs:366:23
|
366 | let classes = self.classes.iter().map(|(_, class)| class.describe());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.classes.values().map(|class| class.describe())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map
error: could not compile `ext-php-rs-derive` due to 2 previous errors1 parent 9c5d172 commit ee45e8d
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| |||
0 commit comments