Skip to content
Myr

Merge pull request #2910 from jimmycathy/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by GitHub · parents d91f8ba, 88da17c · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • chore: fix the incorrect symbol

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:serde_derive/src/ser.rs+1 added-1 removed
148 unmodified lines
149 }150}151152// Fields with a `skip_serializing` or `serialize_with` attribute, or which153// belong to a variant with a 'skip_serializing` or `serialize_with` attribute,153// belong to a variant with a `skip_serializing` or `serialize_with` attribute,154// are not serialized by us so we do not generate a bound. Fields with a `bound`155// attribute specify their own bound so we do not generate one. All other fields156// may need a `T: Serialize` bound where T is the type of the field.157fn needs_serialize_bound(field: &attr::Field, variant: Option<&attr::Variant>) -> bool {
1209 unmodified lines