File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -184,16 +184,14 @@ pub fn generate_html<IO: FileSystemReader>(
184
184
. sorted ( )
185
185
. collect ( ) ;
186
186
187
- let values: Vec < DocsValues < ' _ > > = module
188
- . ast
189
- . definitions
190
- . iter ( )
191
- . filter ( |statement| !statement. is_internal ( ) )
192
- . flat_map ( |statement| {
193
- value ( & source_links, statement)
194
- } )
195
- . sorted ( )
196
- . collect ( ) ;
187
+ let values: Vec < DocsValues < ' _ > > = module
188
+ . ast
189
+ . definitions
190
+ . iter ( )
191
+ . filter ( |statement| !statement. is_internal ( ) )
192
+ . flat_map ( |statement| value ( & source_links, statement) )
193
+ . sorted ( )
194
+ . collect ( ) ;
197
195
198
196
types. iter ( ) . for_each ( |type_| {
199
197
let constructors = type_
@@ -700,7 +698,7 @@ fn value<'a>(
700
698
. as_ref ( )
701
699
. expect ( "Function in a definition must be named" ) ;
702
700
703
- return Some ( DocsValues {
701
+ Some ( DocsValues {
704
702
name,
705
703
definition : print (
706
704
formatter
@@ -715,7 +713,7 @@ fn value<'a>(
715
713
Deprecation :: Deprecated { message } => message. to_string ( ) ,
716
714
} ,
717
715
} )
718
- } ,
716
+ }
719
717
720
718
Definition :: ModuleConstant ( ModuleConstant {
721
719
publicity : Publicity :: Public ,
You can’t perform that action at this time.
0 commit comments