File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -2537,19 +2537,19 @@ impl TypeStructStruct {
25372537 // List of parameters with default values
25382538 let params_with_default = ty_params
25392539 . iter ( )
2540- . filter_map ( |( ty, default) | match default {
2541- Some ( d) => Some ( coq:: TopLevelItem :: Definition ( coq:: Definition :: new (
2542- ty,
2543- & coq:: DefinitionKind :: Alias {
2544- args : vec ! [ ] ,
2545- ty : None ,
2546- body : coq:: Expression :: Code ( nest ( [ d. to_doc ( false ) ] ) ) ,
2547- } ,
2548- ) ) ) ,
2549- None => None ,
2540+ . filter_map ( |( ty, default) | {
2541+ default. as_ref ( ) . map ( |d| {
2542+ coq:: TopLevelItem :: Definition ( coq:: Definition :: new (
2543+ ty,
2544+ & coq:: DefinitionKind :: Alias {
2545+ args : vec ! [ ] ,
2546+ ty : None ,
2547+ body : coq:: Expression :: Code ( nest ( [ d. to_doc ( false ) ] ) ) ,
2548+ } ,
2549+ ) )
2550+ } )
25502551 } )
25512552 . collect :: < Vec < _ > > ( ) ;
2552-
25532553 coq:: TopLevel :: new (
25542554 & [
25552555 if * is_dead_code {
You can’t perform that action at this time.
0 commit comments