Skip to content

Commit

Permalink
Address ser_schema comment
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhly committed Oct 25, 2023
1 parent 6dc985f commit d293215
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/serializers/computed_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,7 @@ fn has_ser_function(schema: &PyDict) -> bool {
let ser_schema = schema
.get_as::<&PyDict>(intern!(py, "serialization"))
.unwrap_or_default();

match ser_schema {
Some(s) => s.contains(intern!(py, "function")).unwrap_or_default(),
None => false,
}
ser_schema.is_some_and(|s| s.contains(intern!(py, "function")).unwrap_or_default())
}

fn get_next_value<'a>(
Expand Down

0 comments on commit d293215

Please sign in to comment.