Skip to content

Commit 5b687c8

Browse files
Update according to linter
1 parent 054e9d0 commit 5b687c8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/src/top_level.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)