File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ pub fn parser(input: ItemFn) -> Result<TokenStream> {
55
55
} ) ;
56
56
let registered_classes_impls = state
57
57
. classes
58
- . iter ( )
59
- . map ( | ( _ , class ) | generate_registered_class_impl ( class ) )
58
+ . values ( )
59
+ . map ( generate_registered_class_impl)
60
60
. collect :: < Result < Vec < _ > > > ( ) ?;
61
61
let describe_fn = generate_stubs ( & state) ;
62
62
@@ -363,7 +363,7 @@ impl Describe for crate::constant::Constant {
363
363
impl Describe for State {
364
364
fn describe ( & self ) -> TokenStream {
365
365
let functs = self . functions . iter ( ) . map ( Describe :: describe) ;
366
- let classes = self . classes . iter ( ) . map ( |( _ , class) | class. describe ( ) ) ;
366
+ let classes = self . classes . values ( ) . map ( |class| class. describe ( ) ) ;
367
367
let constants = self . constants . iter ( ) . map ( Describe :: describe) ;
368
368
369
369
quote ! {
You can’t perform that action at this time.
0 commit comments