Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Jun 12, 2024
1 parent dc3c93e commit b3693c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,17 @@ impl FrbAttributes {

pub(crate) fn dart2rust(&self) -> Option<FrbAttributeSerDes> {
(self.0.iter())
.filter_map(|item| if_then_some!(let FrbAttribute::Dart2Rust(inner) = item, inner.clone()))
.filter_map(
|item| if_then_some!(let FrbAttribute::Dart2Rust(inner) = item, inner.clone()),
)
.next()
}

pub(crate) fn rust2dart(&self) -> Option<FrbAttributeSerDes> {
(self.0.iter())
.filter_map(|item| if_then_some!(let FrbAttribute::Rust2Dart(inner) = item, inner.clone()))
.filter_map(
|item| if_then_some!(let FrbAttribute::Rust2Dart(inner) = item, inner.clone()),
)
.next()
}
}
Expand Down
6 changes: 4 additions & 2 deletions frb_codegen/src/library/codegen/parser/mir/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ pub(crate) fn parse(
default_stream_sink_codec: config.default_stream_sink_codec,
default_rust_opaque_codec: config.default_rust_opaque_codec,
parse_mode,
}
},
)?;
type_parser.custom_ser_des_infos.extend(custom_ser_des_infos);
type_parser
.custom_ser_des_infos
.extend(custom_ser_des_infos);

let (funcs_all, skipped_functions) = function::parse(
config,
Expand Down

0 comments on commit b3693c0

Please sign in to comment.