Skip to content

Commit

Permalink
fixup! Use ? operator in FieldWithDefaults::custom_conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ijackson committed Apr 13, 2022
1 parent 1a09e8c commit 0059443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion derive_builder_core/src/macro_options/darling_opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ impl<'a> FieldWithDefaults<'a> {
}

pub fn custom_conversion(&'a self) -> Option<CustomConversion<'a>> {
Some(match &self.field.custom?.build {
Some(match &self.field.custom.as_ref()?.build {
Some(block) => CustomConversion::Block(block),
None => CustomConversion::Move,
})
Expand Down

0 comments on commit 0059443

Please sign in to comment.