We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0b21ce commit 4deaba6Copy full SHA for 4deaba6
src/serializers/computed_fields.rs
@@ -79,7 +79,7 @@ impl ComputedFields {
79
include.as_ref(),
80
exclude.as_ref(),
81
state,
82
- &field_extra,
+ field_extra,
83
)?;
84
output_dict.set_item(key, value)
85
},
@@ -123,7 +123,7 @@ impl ComputedFields {
123
124
125
126
127
);
128
map.serialize_entry(key, &s)
129
src/serializers/extra.rs
@@ -500,7 +500,7 @@ where
500
value: T,
501
}
502
503
-impl<'a, 'py, P, T> Drop for ScopedSetState<'_, 'py, P, T>
+impl<'py, P, T> Drop for ScopedSetState<'_, 'py, P, T>
504
where
505
P: for<'drop> Fn(&'drop mut SerializationState<'py>) -> &'drop mut T,
506
{
@@ -509,7 +509,7 @@ where
509
510
511
512
-impl<'a, 'py, P, T> Deref for ScopedSetState<'_, 'py, P, T>
+impl<'py, P, T> Deref for ScopedSetState<'_, 'py, P, T>
513
514
P: for<'p> Fn(&'p mut SerializationState<'py>) -> &'p mut T,
515
@@ -520,7 +520,7 @@ where
520
521
522
523
-impl<'a, 'py, P, T> DerefMut for ScopedSetState<'_, 'py, P, T>
+impl<'py, P, T> DerefMut for ScopedSetState<'_, 'py, P, T>
524
525
526
src/serializers/fields.rs
@@ -197,7 +197,7 @@ impl GeneralFieldsSerializer {
197
let state = &mut state.scoped_set(|s| &mut s.field_name, Some(field_name));
198
if let Some((next_include, next_exclude)) = self.filter.key_filter(&key, include, exclude)? {
199
let (key, serializer) = if let Some(field) = op_field {
200
- let serializer = Self::prepare_value(&value, field, &extra)?;
+ let serializer = Self::prepare_value(&value, field, extra)?;
201
202
if field.required {
203
used_req_fields += 1;
@@ -207,7 +207,7 @@ impl GeneralFieldsSerializer {
207
continue;
208
};
209
210
- (field.get_key_py(output_dict.py(), &extra), serializer)
+ (field.get_key_py(output_dict.py(), extra), serializer)
211
} else if self.mode == FieldsMode::TypedDictAllow {
212
let serializer = self
213
.extra_serializer
@@ -234,7 +234,7 @@ impl GeneralFieldsSerializer {
234
next_include.as_ref(),
235
next_exclude.as_ref(),
236
237
- &extra,
+ extra,
238
239
output_dict.set_item(key, value)?;
240
src/serializers/mod.rs
@@ -72,7 +72,7 @@ impl SchemaSerializer {
72
#[pyo3(signature = (value, *, mode = None, include = None, exclude = None, by_alias = None,
73
exclude_unset = false, exclude_defaults = false, exclude_none = false, exclude_computed_fields = false,
74
round_trip = false, warnings = WarningsArg::Bool(true), fallback = None, serialize_as_any = false, context = None))]
75
- pub fn to_python<'py>(
+ pub fn to_python(
76
&self,
77
py: Python,
78
value: &Bound<'_, PyAny>,
0 commit comments