Skip to content
Myr

refactor: remove 1 level of nesting

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

authored by Nik Revenco · committed by Nik Revenco · parent 4e27870 · Browse files · 1 file+3 added−5 removed
This commit

State

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

Diff stats

1 file+3 added−5 removed

  • other:+3 added−5 removed

1 file+3 added−5 removed

modified:serde_derive/src/internals/attr.rs+3 added-5 removed
1183 unmodified lines
1184 cx.syn_error(err);1185 }1186 }11871188 // Is skip_deserializing, initialize the field to Default::default() unless a1188 // If skip_deserializing, initialize the field to Default::default() unless a1189 // different default is specified by `#[serde(default = "...")]` on1190 // ourselves or our container (e.g. the struct we are in).1191 if let Default::None = *container_default {1192 if skip_deserializing.0.value.is_some() {1193 default.set_if_none(Default::Default);1191 if container_default.is_none() && skip_deserializing.0.value.is_some() {1192 default.set_if_none(Default::Default);1194 }1193 }11941195 let mut borrowed_lifetimes = borrowed_lifetimes.get().unwrap_or_default();1196 if !borrowed_lifetimes.is_empty() {
633 unmodified lines